Add warning -Wmissing-variable-declarations

This commit is contained in:
Max Bruckner 2017-05-10 01:19:52 +02:00
parent 5f1fdb4c6f
commit 7f8ee7084a
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ if (ENABLE_CUSTOM_COMPILER_FLAGS)
-Wparentheses
-Wformat-overflow
-Wunused-macros
-Wmissing-variable-declarations
)
endif()

View File

@ -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;