From 4e0c119391ae952dd1ba02c8c3a7279ef31d6329 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Wed, 10 May 2017 01:19:52 +0200 Subject: [PATCH] Add warning -Wmissing-variable-declarations --- CMakeLists.txt | 1 + tests/json_patch_tests.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8944894..7dbb289 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,6 +43,7 @@ if (ENABLE_CUSTOM_COMPILER_FLAGS) -Wparentheses -Wformat-overflow -Wunused-macros + -Wmissing-variable-declarations ) endif() diff --git a/tests/json_patch_tests.c b/tests/json_patch_tests.c index 3d4df41..c2c88a4 100644 --- a/tests/json_patch_tests.c +++ b/tests/json_patch_tests.c @@ -119,7 +119,7 @@ static cJSON_bool test_apply_patch(const cJSON * const test) return successful; } -static cJSON_bool test_generate_test(cJSON *test __attribute__((unused))) +static cJSON_bool test_generate_test(cJSON *test) { cJSON *doc = NULL; cJSON *patch = NULL;