mirror of
https://github.com/json-c/json-c.git
synced 2026-04-12 00:39:06 +08:00
Make the json_tokener_errors array local. It has been deprecated for a while, and json_tokener_error_desc() should be used instead.
This commit is contained in:
@@ -66,8 +66,7 @@ static const int json_true_str_len = sizeof(json_true_str) - 1;
|
||||
static const char json_false_str[] = "false";
|
||||
static const int json_false_str_len = sizeof(json_false_str) - 1;
|
||||
|
||||
// XXX after v0.10 this array will become static:
|
||||
const char* json_tokener_errors[] = {
|
||||
static const char* json_tokener_errors[] = {
|
||||
"success",
|
||||
"continue",
|
||||
"nesting too deep",
|
||||
|
||||
Reference in New Issue
Block a user