Skip to content

Commit 7ae5513

Browse files
author
timlinux
committedJul 26, 2007
Disable pedantic for preview 1
Make pedantic warnings only appear when pedantic is on git-svn-id: http://svn.osgeo.org/qgis/trunk@7099 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 057bfc1 commit 7ae5513

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed
 

‎CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ SET (WITH_BINDINGS TRUE CACHE BOOL "Determines whether python bindings should be
3838
SET (BINDINGS_GLOBAL_INSTALL FALSE CACHE BOOL "Install bindings to global python directory? (might need root)")
3939

4040
# Compile flag. Make it posible to turn it off.
41-
SET (PEDANTIC TRUE CACHE BOOL "Determines if we should compile with -Wall -Werror.")
41+
SET (PEDANTIC FALSE CACHE BOOL "Determines if we should compile with -Wall -Werror.")
4242

4343
# whether unit tests should be build
4444
SET (ENABLE_TESTS FALSE CACHE BOOL "Build unit tests?")

‎src/plugins/grass/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ SUBDIRS(config modules themes)
44
ADD_DEFINITIONS(-DGRASS_BASE=\\\"${GRASS_PREFIX}\\\")
55
ADD_DEFINITIONS(-DHAVE_OPENPTY=${HAVE_OPENPTY})
66

7+
IF (PEDANTIC)
78
MESSAGE("providers/grass : -Werror removed for qgsgrassplugin.cpp for now - please get rid of any compiler warnings!")
9+
ENDIF (PEDANTIC)
810
# The warnings are caused by multiple definitions of NDEBUG in grass sources
911
# I have submitted a bug to teh grass folks in the meantime we need to
1012
# disable treating warnings as errors for the affected files
@@ -72,7 +74,9 @@ QT4_WRAP_CPP (GRASS_PLUGIN_MOC_SRCS ${GRASS_PLUGIN_MOC_HDRS})
7274

7375
########################################################
7476
# deal with warnings
77+
IF (PEDANTIC)
7578
MESSAGE("providers/grass : -Werror removed for qgsgrassplugin.cpp for now - please get rid of any compiler warnings!")
79+
ENDIF (PEDANTIC)
7680
# The warnings are caused by multiple definitions of NDEBUG in grass sources
7781
# I have submitted a bug to teh grass folks in the meantime we need to
7882
# disable treating warnings as errors for the affected files

‎src/providers/grass/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ SET(GRASS_PROVIDER_SRCS provider.cpp)
88

99
SET(GRASS_LIB_SRCS qgsgrassprovider.cpp qgsgrass.cpp)
1010

11-
MESSAGE("providers/grass : -Werror removed for qgsgrassprovider.cpp for now - please get rid of any compiler warnings!")
11+
IF (PEDANTIC)
12+
MESSAGE("providers/grass : -Werror removed for qgsgrassprovider.cpp for now - please get rid of any compiler warnings!")
13+
ENDIF (PEDANTIC)
1214
# The warnings are caused by multiple definitions of NDEBUG in grass sources
1315
# I have submitted a bug to teh grass folks in the meantime we need to
1416
# disable treating warnings as errors for the affected files

‎src/providers/wfs/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ SET (WFS_MOC_HDRS
88
qgswfsdata.h
99
)
1010

11-
MESSAGE("providers/wfs : -Werror removed for qgswfsprovider.cpp for now - please get rid of any compiler warnings!")
11+
IF (PEDANTIC)
12+
MESSAGE("providers/wfs : -Werror removed for qgswfsprovider.cpp for now - please get rid of any compiler warnings!")
13+
ENDIF (PEDANTIC)
1214
SET_SOURCE_FILES_PROPERTIES(qgswfsprovider.cpp PROPERTIES COMPILE_FLAGS -Wno-error )
1315
########################################################
1416
# Build

0 commit comments

Comments
 (0)
Please sign in to comment.