aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMax Horn2006-08-04 20:24:49 +0000
committerMax Horn2006-08-04 20:24:49 +0000
commit355a978572f1969377778ba14ab0396d229f1f8f (patch)
tree43ce75c987acc4f594e1bed7ab653031c0e78f17 /Makefile
parent0caaf3fc2c0eff9d54b9dead846665e559135219 (diff)
downloadscummvm-rg350-355a978572f1969377778ba14ab0396d229f1f8f.tar.gz
scummvm-rg350-355a978572f1969377778ba14ab0396d229f1f8f.tar.bz2
scummvm-rg350-355a978572f1969377778ba14ab0396d229f1f8f.zip
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)
svn-id: r23675
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b1f4855e0e..ed6683b618 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,6 @@ MODULE_DIRS :=
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 @@ CXXFLAGS+= -Wno-reorder -Wwrite-strings
# 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 #
#######################################################################