mirror of https://github.com/DaveGamble/cJSON
Add warning -Wmissing-variable-declarations
This commit is contained in:
parent
5f1fdb4c6f
commit
7f8ee7084a
|
@ -43,6 +43,7 @@ if (ENABLE_CUSTOM_COMPILER_FLAGS)
|
|||
-Wparentheses
|
||||
-Wformat-overflow
|
||||
-Wunused-macros
|
||||
-Wmissing-variable-declarations
|
||||
)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue