Build cleanly with gcc's -Werror=declaration-after-statement flag

This commit is contained in:
Petri Lehtinen 2011-01-17 15:51:29 +02:00
parent a242381024
commit 46f91797ec

View File

@ -805,10 +805,10 @@ json_t *json_loads(const char *string, size_t flags, json_error_t *error)
{ {
lex_t lex; lex_t lex;
json_t *result; json_t *result;
(void)flags; /* unused */
string_data_t stream_data = {string, 0}; string_data_t stream_data = {string, 0};
(void)flags; /* unused */
if(lex_init(&lex, string_get, string_eof, (void *)&stream_data)) if(lex_init(&lex, string_get, string_eof, (void *)&stream_data))
return NULL; return NULL;