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;