summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2010-12-13 13:56:52 +0000
committerAlbert Astals Cid <aacid@kde.org>2010-12-13 13:56:52 +0000
commit2b74241d8b1fd1ec9fab4f6f673bbaaa1cb3d949 (patch)
tree967f730dbec3f96c23744b9017253fe6ddde62d2 /cmake
parent7313e0a4de6f2146c1dcb3d235f18a3c844d12d5 (diff)
Promote -Wcast-align to the general warnings we ask gcc to give
Diffstat (limited to 'cmake')
-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 9b4ae132..dac41234 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")
+ set(DEFAULT_COMPILE_WARNINGS_YES "-Wall -Wno-write-strings -Wcast-align")
set(DEFAULT_COMPILE_WARNINGS_KDE "-Wno-long-long -Wundef -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -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}")