You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make -f objs/Makefile
make[1]: Entering directory '/root/Builder/tengine-2.2.0'
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I src/proc -I objs \
-o objs/src/core/ngx_murmurhash.o \
src/core/ngx_murmurhash.c
src/core/ngx_murmurhash.c: In function ‘ngx_murmur_hash2’:
src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
h ^= data[2] << 16;
~~^~~~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:38:5: note: here
case 2:
^~~~
src/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
h ^= data[1] << 8;
~~^~~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:40:5: note: here
case 1:
^~~~
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:477: objs/src/core/ngx_murmurhash.o] Error 1
make[1]: Leaving directory '/root/Builder/tengine-2.2.0'
make: *** [Makefile:8: build] Error 2
@udomsak Thanks for your report. because of GCC 7 added a new -Wimplicit-fallthrough which generates a message for case statements that implicitly fallthrough to the next case.
you can try #1007 . thx
OS:
Fedora Core 27
GCC:
gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC)
Configure:
./configure --prefix=/usr/local/tengine --error-log-path=/var/log/tengine --http-log-path=/var/log/tengine
Error:
GCC_detail:
The text was updated successfully, but these errors were encountered: