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

fcgiwrap.c:555:4: error: this statement may fall through #57

Open
Irbis-snowbars opened this issue Oct 8, 2021 · 1 comment · May be fixed by #62
Open

fcgiwrap.c:555:4: error: this statement may fall through #57

Irbis-snowbars opened this issue Oct 8, 2021 · 1 comment · May be fixed by #62

Comments

@Irbis-snowbars
Copy link

# make fcgiwrap

cc -std=gnu99 -Wall -Wextra -Werror -pedantic -O2 -g3    fcgiwrap.c  -lfcgi  -o fcgiwrap
fcgiwrap.c: In function ‘handle_fcgi_request’:
fcgiwrap.c:555:4: error: this statement may fall through [-Werror=implicit-fallthrough=]
555 |    cgi_error("502 Bad Gateway", "Cannot execute script", filename);
    |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fcgiwrap.c:557:3: note: here
557 |   default: /* parent */
    |   ^~~~~~~
cc1: all warnings being treated as errors
make: *** [<builtin>: fcgiwrap] Error 1
@tianakack
Copy link

you can edit the Makefile generated by ./configure, and remove the -Werror in CFLAGS

#CFLAGS = -std=gnu99 -Wall -Wextra -Werror -pedantic -O2 -g3                                                        
CFLAGS = -std=gnu99 -Wall -Wextra -pedantic -O2 -g3

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

Successfully merging a pull request may close this issue.

2 participants