Nginx-rtmp-module: make: *** [Makefile:11: install] Error 2 on Ubuntu 18.10

Created on 8 Mar 2019  Â·  1Comment  Â·  Source: arut/nginx-rtmp-module

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

Most helpful comment

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);

>All comments

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);
Was this page helpful?
0 / 5 - 0 ratings

Related issues

wwwyaron picture wwwyaron  Â·  4Comments

qhchen2 picture qhchen2  Â·  4Comments

WayneShao picture WayneShao  Â·  3Comments

evgenibers picture evgenibers  Â·  4Comments

Tinywan picture Tinywan  Â·  3Comments