We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[ 98%] Building C object apps/CMakeFiles/json_parse.dir/json_parse.c.o /usr/json-c/apps/json_parse.c: In function 'main': /usr/json-c/apps/json_parse.c:170:13: error: this statement may fall through [-Werror=implicit-fallthrough=] 170 | case 'h': usage(argv[0], 0, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/json-c/apps/json_parse.c:171:3: note: here 171 | default: /* '?' */ usage(argv[0], EXIT_FAILURE, "Unknown arguments"); | ^~~~~~~ cc1: all warnings being treated as errors make[2]: *** [apps/CMakeFiles/json_parse.dir/build.make:63: apps/CMakeFiles/json_parse.dir/json_parse.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1757: apps/CMakeFiles/json_parse.dir/all] Error 2 make: *** [Makefile:163: all] Error 2
The text was updated successfully, but these errors were encountered:
i up again from fork, but just some info 4 u
Sorry, something went wrong.
Merge pull request #769 from An7ar35/issue-768
11546bf
Issue #768
s/b fixed w/ pr#769
Fix #771/#768 by marking usage() as "noreturn" instead of using "FALL…
6ee0a35
…THRU" in the case statement where it'd called.
No branches or pull requests
[ 98%] Building C object apps/CMakeFiles/json_parse.dir/json_parse.c.o
/usr/json-c/apps/json_parse.c: In function 'main':
/usr/json-c/apps/json_parse.c:170:13: error: this statement may fall through [-Werror=implicit-fallthrough=]
170 | case 'h': usage(argv[0], 0, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/json-c/apps/json_parse.c:171:3: note: here
171 | default: /* '?' */ usage(argv[0], EXIT_FAILURE, "Unknown arguments");
| ^~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [apps/CMakeFiles/json_parse.dir/build.make:63: apps/CMakeFiles/json_parse.dir/json_parse.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1757: apps/CMakeFiles/json_parse.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
The text was updated successfully, but these errors were encountered: