diff options
author | Albert Astals Cid <aacid@kde.org> | 2009-07-31 23:22:10 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2009-07-31 23:22:10 +0200 |
commit | 10717a48c85f1dbeff1c6bcd094006a9ecc92efc (patch) | |
tree | a66dfc0a80120dd15778ef4684063fe5f3904271 /cmake/modules | |
parent | db5f736655f01575ac5d7c524cbf131924ae91fa (diff) |
Add -Woverloaded-virtual as default CXX flag
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/PopplerMacros.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/modules/PopplerMacros.cmake b/cmake/modules/PopplerMacros.cmake index a0a7c274..5b0555f8 100644 --- a/cmake/modules/PopplerMacros.cmake +++ b/cmake/modules/PopplerMacros.cmake @@ -91,6 +91,7 @@ if(CMAKE_COMPILER_IS_GNUCXX) set(DEFAULT_COMPILE_WARNINGS_YES "-Wall -Wno-write-strings") set(DEFAULT_COMPILE_WARNINGS_KDE "-Wnon-virtual-dtor -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 "-Woverloaded-virtual") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") set(CMAKE_CXX_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") |