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
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);
Most helpful comment
This fix will work