Watchman: compilation error on Ubuntu 18.04

Created on 1 Jul 2018  Â·  2Comments  Â·  Source: facebook/watchman

Ubuntu 18.04
when I make the watchman, it appear the err
hash.c: In function ‘w_hash_bytes’:
hash.c:228:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 12: c+=((uint32_t)k[11])<<24;
^
hash.c:229:7: note: here
case 11: c+=((uint32_t)k[10])<<16;
^~
hash.c:229:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 11: c+=((uint32_t)k[10])<<16;
^
hash.c:230:7: note: here
case 10: c+=((uint32_t)k[9])<<8;
^
~
hash.c:230:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 10: c+=((uint32_t)k[9])<<8;
^
hash.c:231:7: note: here
case 9 : c+=k[8];
^~
hash.c:231:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 9 : c+=k[8];
^
hash.c:232:7: note: here
case 8 : b+=((uint32_t)k[7])<<24;
^
~
hash.c:232:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 8 : b+=((uint32_t)k[7])<<24;
^
hash.c:233:7: note: here
case 7 : b+=((uint32_t)k[6])<<16;
^~
hash.c:233:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 7 : b+=((uint32_t)k[6])<<16;
^
hash.c:234:7: note: here
case 6 : b+=((uint32_t)k[5])<<8;
^
~
hash.c:234:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 6 : b+=((uint32_t)k[5])<<8;
^
hash.c:235:7: note: here
case 5 : b+=k[4];
^~
hash.c:235:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 5 : b+=k[4];
^
hash.c:236:7: note: here
case 4 : a+=((uint32_t)k[3])<<24;
^
~
hash.c:236:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 4 : a+=((uint32_t)k[3])<<24;
^
hash.c:237:7: note: here
case 3 : a+=((uint32_t)k[2])<<16;
^~
hash.c:237:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 3 : a+=((uint32_t)k[2])<<16;
^
hash.c:238:7: note: here
case 2 : a+=((uint32_t)k[1])<<8;
^
~
hash.c:238:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
case 2 : a+=((uint32_t)k[1])<<8;
^
hash.c:239:7: note: here
case 1 : a+=k[0];
^~~~
cc1: all warnings being treated as errors
Makefile:1517: recipe for target 'watchman-hash.o' failed
make[1]: * [watchman-hash.o] Error 1

Most helpful comment

You can use ./configure --enable-lenient to prevent promoting warnings to errors. This has already been fixed in master but has not made it into a release.

All 2 comments

why nobody to give my answer? this is the project of facebook?

You can use ./configure --enable-lenient to prevent promoting warnings to errors. This has already been fixed in master but has not made it into a release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joseluisq picture joseluisq  Â·  7Comments

akabab picture akabab  Â·  5Comments

kumarharsh picture kumarharsh  Â·  6Comments

williamcotton picture williamcotton  Â·  6Comments

cpojer picture cpojer  Â·  7Comments