4 ms·
Which is hella annoying. -Wall -Wextra is very needed, -Wconversion is nice but already borderline annoying, but enabling everything would just be a mess.
by tomsmeding 10y ago
Which is hella annoying. -Wall -Wextra is very needed, -Wconversion is nice but already borderline annoying, but enabling everything would just be a mess.
- lorenzhs 10y ago-Wc++98-compat is especially annoying.
- uabstraction 10y agoYou guys don't use -pedantic? :D
- lorenzhs 10y ago-Weverything is even more pedantic than -pedantic: http://clang.llvm.org/docs/UsersManual.html#diagnostics-enable-everything http://clang.llvm.org/docs/UsersManual.html#diagnostics-enab... - pedantic can be a bit annoying, but Weverything is downright infuriating on a modern codebase
- cygx 10y agoThat's why you combine it with -Wno-... as appropriate on a per-project as well as per-file basis in addition to a simple way to disable warnings completely. When using make, it could look something like this: CC := clang CFLAGS := -std=c99 WFLAGS := -Weverything -Werror NOWARN := vla COMPILE = $(CC) -c $(CFLAGS) $(WFLAGS) $(NOWARN:%=-Wno-%) -o $@ $< foo.o: NOWARN += padded foo.o bar.o: %.o: %.c $(COMPILE) Building without warnings would be achieved via make WFLAGS=""