diff options
author | Max Horn | 2006-08-04 20:24:49 +0000 |
---|---|---|
committer | Max Horn | 2006-08-04 20:24:49 +0000 |
commit | 355a978572f1969377778ba14ab0396d229f1f8f (patch) | |
tree | 43ce75c987acc4f594e1bed7ab653031c0e78f17 | |
parent | 0caaf3fc2c0eff9d54b9dead846665e559135219 (diff) | |
download | scummvm-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
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 # ####################################################################### |