summaryrefslogtreecommitdiff
path: root/cmake/modules
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2009-10-09 00:29:06 +0200
committerAlbert Astals Cid <aacid@kde.org>2009-10-09 00:29:06 +0200
commitf346c1f6b55f87ebd6bb0b0932462d5514aa40ff (patch)
treec3c65534905efb4b4ee5d1affddbcb7959ec8b20 /cmake/modules
parent53e0016b772f1b78d998506e2f3106011d32cef3 (diff)
add -ansi flag to default warnings
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/PopplerMacros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/PopplerMacros.cmake b/cmake/modules/PopplerMacros.cmake
index 239b6f32..a421f603 100644
--- a/cmake/modules/PopplerMacros.cmake
+++ b/cmake/modules/PopplerMacros.cmake
@@ -88,7 +88,7 @@ endif(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
if(CMAKE_COMPILER_IS_GNUCXX)
# set the default compile warnings
set(DEFAULT_COMPILE_WARNINGS_NO)
- set(DEFAULT_COMPILE_WARNINGS_YES "-Wall -Wno-write-strings")
+ set(DEFAULT_COMPILE_WARNINGS_YES "-ansi -Wall -Wno-write-strings")
set(DEFAULT_COMPILE_WARNINGS_KDE "-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common")
set(CMAKE_CXX_FLAGS "-Wnon-virtual-dtor -Woverloaded-virtual")