On Sat, 07 Apr 2018 21:33:24 +0200, Jeremie Courreges-Anglas wrote: > At least ports/archivers/fuse-zip fails to build with clang 6, because > of stricter diagnostics: > > -->8-- > c++ -c -O2 -pipe -I/usr/local/include main.cpp \ > -Ilib \ > -o main.o > main.cpp:138:5: error: constant expression evaluates to -1 which cannot be na > rrowed to type 'unsigned long' [-Wc++11-narrowing] > FUSE_OPT_KEY("-h", KEY_HELP), > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/include/fuse_opt.h:51:33: note: expanded from macro 'FUSE_OPT_KEY' > #define FUSE_OPT_KEY(t, k) { t, -1, k } > ^~ > main.cpp:138:5: note: insert an explicit cast to silence this issue > FUSE_OPT_KEY("-h", KEY_HELP), > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > --8<-- > > Full log at: > > https://junkpile.org/p/failures/i386-20180407/archivers/fuse-zip.log > > Proposed fix below. ok?
OK millert@ - todd