Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json_tokener.c - all warnings being treated as errors #224

Closed
dslake opened this issue Feb 26, 2016 · 1 comment
Closed

json_tokener.c - all warnings being treated as errors #224

dslake opened this issue Feb 26, 2016 · 1 comment

Comments

@dslake
Copy link

dslake commented Feb 26, 2016

Following the directions to build version json-c-0.12, I issue 'make' command and receive the following error:

json_tokener.c: In function 'json_tokener_parse_ex':
json_tokener.c:355:6: error: variable 'size' set but not used [-Werror=unused-but-set-variable]
  int size;
      ^

Version 0.11 doesn't have this issue, or the entire case statement in that function to handle
case json_tokener_state_inf:

By commenting out lines 355 and 360, it removes the warning.

@dslake
Copy link
Author

dslake commented Feb 26, 2016

Oops. This is already fixed in master, but not in the 0.12 tarball download. Closing issue.

@dslake dslake closed this as completed Feb 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant