Increase warning level
[stockfish] / src / Makefile
index d4a2a01dacac285c45f0f79f4afbf571bb34385e..3feaf11b7b730a406fa2aad14ad174cbdaf82f7f 100644 (file)
@@ -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