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
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.
Most helpful comment
You can use
./configure --enable-lenientto prevent promoting warnings to errors. This has already been fixed in master but has not made it into a release.