On Thu, Apr 5, 2012 at 4:39 AM, Richard Guenther <richard.guent...@gmail.com> wrote:
> Btw, it would be more reasonable to enable a subset of warnings that > we enable at -Wall by default. Which ones for example? Here is a (partial) list: -Wformat -Wchar-subscripts -Wmissing-braces -Wparentheses -Wreturn-type -Wsequence-point -Wstrict-aliasing -Wswitch -Waddress -Wstrict-overflow -Warray-bounds -Wvolatile-register -Wunknown-pragmas -Wuninitialized -Wmaybe-uninitialized -Wmain -Wenum-compare -Wsign-compare -Wreorder -Wc++0x-compat -Wnarrowing -Wtrigraphs -Wcomments -Wpointer-sign > Notably those that if they were not > false positives, would lead to undefined behavior at runtime. Specifically > I don't think we should warn about unused static functions or variables > by default. > > Richard. > >> -- Gaby