projects
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a242381
)
Build cleanly with gcc's -Werror=declaration-after-statement flag
author
Petri Lehtinen
<petri@digip.org>
Mon, 17 Jan 2011 13:51:29 +0000
(15:51 +0200)
committer
Petri Lehtinen
<petri@digip.org>
Mon, 17 Jan 2011 13:51:40 +0000
(15:51 +0200)
src/load.c
patch
|
blob
|
history
diff --git
a/src/load.c
b/src/load.c
index
f05230b
..
731aced
100644
(file)
--- a/
src/load.c
+++ b/
src/load.c
@@
-805,10
+805,10
@@
json_t *json_loads(const char *string, size_t flags, json_error_t *error)
{
lex_t lex;
json_t *result;
- (void)flags; /* unused */
-
string_data_t stream_data = {string, 0};
+ (void)flags; /* unused */
+
if(lex_init(&lex, string_get, string_eof, (void *)&stream_data))
return NULL;