Date: Tue, 4 Dec 2001 13:11:52 -0800 From: "David O'Brien" <obrien@freebsd.org> To: freebsd-arch@freebsd.org Subject: WARNS granularity Message-ID: <20011204131152.A73842@dragon.nuxi.com>
next in thread | raw e-mail | index | archive | help
IMO our WARNS values {0,1,2} are not granular enough. I would like to make 1 ==> -Werror only. This would help prevent regressions with sources that do not produces warnings with the default GCC warnings. WARNS=2 would add: -Wall I think having a WARNS level that is just -Wall is useful as -Wall is the most common thing GCC users compile with if they use any warnings at all. WARNS=3 would be the same as today's `1', which adds: -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized WARNS=4 would be the same as today's `2', which adds: -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow Objections? Improvements to the idea? -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011204131152.A73842>