Adding some options to make gcc more strict (warnings treated as errors, ANSI/ISO...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Apr 2004 09:54:31 +0000 (09:54 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Apr 2004 09:54:31 +0000 (09:54 +0000)
build/Makefile.Linux

index 041b1bd..4235504 100644 (file)
@@ -10,14 +10,14 @@ CCMAJORV      = $(shell $(CC) -dumpversion | cut -d. -f1)
 OPT           = -O -g
 
 ifeq ($(CCMAJORV),2)
-CXXOPTS       = $(OPT) -W -Wall -fPIC -pipe
+CXXOPTS       = $(OPT) -W -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi
 else
-CXXOPTS       = $(OPT) -W -Wall -fPIC -pipe -fmessage-length=0
+CXXOPTS       = $(OPT) -W -Wall -Werror -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi
 endif
 COPT         = $(OPT)
 FOPT         = $(OPT) -fno-second-underscore
 CXXFLAGS      = $(CXXOPTS)
-CFLAGS       = -Wall -fPIC -pipe
+CFLAGS       = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi
 
 # rootcint flags
 CINTFLAGS     =