From 355a978572f1969377778ba14ab0396d229f1f8f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 4 Aug 2006 20:24:49 +0000 Subject: 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 --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 # ####################################################################### -- cgit v1.2.3