[Scummvm-cvs-logs] SF.net SVN: scummvm: [23675] scummvm/trunk/Makefile
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Fri Aug 4 22:24:53 CEST 2006
Revision: 23675
Author: fingolfin
Date: 2006-08-04 13:24:49 -0700 (Fri, 04 Aug 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=23675&view=rev
Log Message:
-----------
Disabled '-O -Wuninitialized by default; this eases debugging a lot in some cases, at the cost of a nice-but-not-so-often-needed compiler warning (see also patch #1511980)
Modified Paths:
--------------
scummvm/trunk/Makefile
Modified: scummvm/trunk/Makefile
===================================================================
--- scummvm/trunk/Makefile 2006-08-04 20:17:16 UTC (rev 23674)
+++ scummvm/trunk/Makefile 2006-08-04 20:24:49 UTC (rev 23675)
@@ -19,7 +19,6 @@
include config.mk
CXXFLAGS:= -Wall $(CXXFLAGS)
-CXXFLAGS+= -O -Wuninitialized
CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas
# Even more warnings...
CXXFLAGS+= -pedantic -Wpointer-arith -Wcast-qual -Wconversion
@@ -29,6 +28,12 @@
# Disable RTTI and exceptions, and enabled checking of pointers returned by "new"
CXXFLAGS+= -fno-rtti -fno-exceptions -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
+
#######################################################################
# Misc stuff - you should never have to edit this #
#######################################################################
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