From: Brian P. <bri...@tu...> - 2006-05-24 21:35:55
|
Michael Barnes wrote: > All, > > I may have a better patch attached. If -Werror is needed for building > cromium, then it might be better just to shut up gcc's bogus warning > about something that "may be used unitialized". The flag that shuts > this up is -Wno-uninitialized. > >>From gcc's manpage: > > These warnings are made optional because GNU CC is not smart > enough to see all the reasons why the code might be correct > despite appearing to have an error. Which version of gcc is that? I checked the manual for a few versions and can't find it. > Uninitialized variables are bugs. Warnings about them maybe being > uninitilized being turned into errors, when they are not unitialized, > is a waste of our time. > > Please consider the attached patch. > > The patch is against 1.8, but it should apply cleanly to 1.9. I'm thinking the simplest thing will be to only use -Werror for debug builds, as someone previously mentioned. -Brian |