aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index be40f3bd24..673078d832 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,10 @@ CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas
# Even more warnings...
CXXFLAGS+= -pedantic -Wpointer-arith -Wcast-qual -Wconversion
CXXFLAGS+= -Wshadow -Wimplicit -Wundef -Wnon-virtual-dtor
-CXXFLAGS+= -Wno-reorder -Wwrite-strings -fcheck-new
+CXXFLAGS+= -Wno-reorder -Wwrite-strings
+
+# Disable RTTI and exceptions, and enabled checking of pointers returned by "new"
+CXXFLAGS+= -fno-rtti -fno-exceptions -fcheck-new
#######################################################################
# Misc stuff - you should never have to edit this #