diff options
author | Albert Astals Cid <aacid@kde.org> | 2010-12-13 14:08:29 +0000 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2010-12-13 14:08:29 +0000 |
commit | 6ef457dc818e7e241e5d2e264bc2d78b132ae638 (patch) | |
tree | 27f1bd9683b7db80e73f815a31631ee983fc9205 /cmake | |
parent | 86e469600b58ae05cb6ede1b4017fbdac99cc556 (diff) |
Move -fno-exceptions -fno-check-new to default flags
Makes sense since we decided not to support the exception path in gmem a
while ago
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/PopplerMacros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/PopplerMacros.cmake b/cmake/modules/PopplerMacros.cmake index f92490f2..83b103e7 100644 --- a/cmake/modules/PopplerMacros.cmake +++ b/cmake/modules/PopplerMacros.cmake @@ -101,7 +101,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 -Wcast-align -fno-common") + set(DEFAULT_COMPILE_WARNINGS_YES "-Wall -Wno-write-strings -Wcast-align -fno-exceptions -fno-check-new -fno-common") set(DEFAULT_COMPILE_WARNINGS_KDE "-Wno-long-long -Wundef -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -Wcast-align -Wconversion -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common") set(CMAKE_CXX_FLAGS "-Wnon-virtual-dtor -Woverloaded-virtual ${CMAKE_CXX_FLAGS}") |