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

make: *** [Makefile:11: install] Error 2 on Ubuntu 18.10 #1358

Open
aminhusni opened this issue Mar 8, 2019 · 1 comment
Open

make: *** [Makefile:11: install] Error 2 on Ubuntu 18.10 #1358

aminhusni opened this issue Mar 8, 2019 · 1 comment

Comments

@aminhusni
Copy link

cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../nginx-rtmp-module-master -I objs -I src/hrc/http/modules
-o objs/addon/nginx-rtmp-module-master/ngx_rtmp_eval.o
../nginx-rtmp-module-master/ngx_rtmp_eval.c
../nginx-rtmp-module-master/ngx_rtmp_eval.c: In function ‘ngx_rtmp_eval’:
../nginx-rtmp-module-master/ngx_rtmp_eval.c:160:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
switch (c) {
^~~~~~
../nginx-rtmp-module-master/ngx_rtmp_eval.c:170:13: note: here
case ESCAPE:
^~~~
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:1395: objs/addon/nginx-rtmp-module-master/ngx_rtmp_eval.o] Error 1
make[1]: Leaving directory '/root/nginx-1.15.9'
make: *** [Makefile:11: install] Error 2

@aminhusni
Copy link
Author

This fix will work


diff -Nur a/ngx_rtmp_eval.c b/ngx_rtmp_eval.c
--- a/ngx_rtmp_eval.c	2018-06-02 19:23:28.993466673 +0200
+++ b/ngx_rtmp_eval.c	2018-06-02 19:23:26.532371311 +0200
@@ -166,6 +166,7 @@
                         state = ESCAPE;
                         continue;
                 }
+				 /* fall through */
 
             case ESCAPE:
                 ngx_rtmp_eval_append(&b, &c, 1, log);

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