From 247c2cd207517b0ab761ed660a45f1cb0f2caae4 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 2 Oct 2010 11:46:18 +0200 Subject: [PATCH] Increase warning level Both under gcc and icc: sf compiles with no warnings ! Signed-off-by: Marco Costalba --- src/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index d4a2a01d..3feaf11b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -219,7 +219,11 @@ ifeq ($(COMP),icc) endif ### 3.2 General compiler settings -CXXFLAGS = -g -Wall -fno-exceptions -fno-rtti $(EXTRACXXFLAGS) +CXXFLAGS = -g -Wall -Wcast-qual -ansi -fno-exceptions -fno-rtti $(EXTRACXXFLAGS) + +ifeq ($(comp),gcc) + CXXFLAGS += -pedantic -Wno-long-long -Wextra +endif ifeq ($(comp),icc) CXXFLAGS += -wd383,869,981,10187,10188,11505,11503 -- 2.39.2