On po 26. ledna 2009, Laurent MONIN wrote: > On Mon, 26 Jan 2009 12:56:54 +0100 > > Vladimir Nadvornik <nadvor...@suse.cz> wrote: > > On po 26. ledna 2009, z...@users.sourceforge.net wrote: > > > Revision: 1356 > > > http://geeqie.svn.sourceforge.net/geeqie/?rev=1356&view=rev > > > Author: zas_ > > > Date: 2009-01-26 08:36:23 +0000 (Mon, 26 Jan 2009) > > > > > > Log Message: > > > ----------- > > > Add -Wformat and -Wformat-security gcc options when > > > --enable-debug-flags is set, move default optimization to -O2 by > > > default (-O0 is only useful for specific debugging purposes). > > > > --enable-debug-flags > > Whole --enable-debug-flags option is for specific debugging purposes. I > > think that there must be -O0. > > > > Vladimir > > I'm not fond of this configure option, imho most warning options should be > enabled by default, this way if a warning is visible on a specific > platform, one may report it. > > -O0 may hide some (compiler) optimization bugs and is not used in the > "real" world. Though i agree -O0 may have some usefulness when analyzing > certain core files.
Flags that should be used on production systems should go to the default configuration. All kinds of warnings are OK, as long as they are not fatal. OTOH most of the distrubutions replace the default flags. --enable-debug-flags should enable the flags that are useful for writting and debugging the code when the developer is ready to fix problems immediately. Most important are -O0 and failures on deprecated functions. Vladimir ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Geeqie-devel mailing list Geeqie-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geeqie-devel