Re:Android Project Changeset 4f8b683: libc/memset.c
by tptacek on Tuesday May 25, 2010 @08:50PM
(#1379182)
All I can say is than in 15 years (fuck.) I've never worked on a team that would have caught a bug like this in dead code. -Wall has been the gold standard on the teams I've worked on.
[ Parent
| on HN ]
Re:Android Project Changeset 4f8b683: libc/memset.c
by josephruscio on Wednesday May 26, 2010 @12:29AM
(#1379516)
-Wall unfortunately leaves a lot of warnings disabled. We've used:
"-W -Wall -Wcast-align -Wstrict-prototypes -Wmissing -prototypes -Wpointer-arith -Wshadow -Wsign-compare -Wformat=2 -Wno-format-y2k -Wimplicit -Wmissing-braces -Wnested-externs -Wparentheses -Wtrigraphs"
Update: Forgot the most important one ... -Werror. Making warnings equivalent to errors is the only way to ensure that they're always taken care of.