[Scummvm-cvs-logs] SF.net SVN: scummvm:[44366] tools/branches/gsoc2009-gui/Makefile

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Fri Sep 25 21:28:44 CEST 2009


Revision: 44366
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44366&view=rev
Author:   fingolfin
Date:     2009-09-25 19:28:44 +0000 (Fri, 25 Sep 2009)

Log Message:
-----------
... and remove -Wuninitialized, too ;)

Modified Paths:
--------------
    tools/branches/gsoc2009-gui/Makefile

Modified: tools/branches/gsoc2009-gui/Makefile
===================================================================
--- tools/branches/gsoc2009-gui/Makefile	2009-09-25 19:27:55 UTC (rev 44365)
+++ tools/branches/gsoc2009-gui/Makefile	2009-09-25 19:28:44 UTC (rev 44366)
@@ -30,12 +30,18 @@
 CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder
 # Enable even more warnings...
 #CXXFLAGS+= -pedantic	# -pedantic is too pedantic, at least on Mac OS X
-CXXFLAGS+= -Wpointer-arith -Wuninitialized -Wcast-align
+CXXFLAGS+= -Wpointer-arith -Wcast-align
 CXXFLAGS+= -Wshadow -Wimplicit -Wundef -Wnon-virtual-dtor -Wwrite-strings
 
 # Enable checking of pointers returned by "new"
 CXXFLAGS+= -fcheck-new
 
+# There is a nice extra warning that flags variables that are potentially
+# used before being initialized. Very handy to catch a certain kind of
+# bugs. Unfortunately, it only works when optimizations are turned on,
+# which is why we normally don't use it.
+#CXXFLAGS+= -O -Wuninitialized
+
 #######################################################################
 # Default commands - put the necessary replacements in config.mk      #
 #######################################################################


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list