diff options
author | David Faure <faure@kde.org> | 2010-10-21 23:21:14 +0000 |
---|---|---|
committer | David Faure <faure@kde.org> | 2010-10-21 23:21:14 +0000 |
commit | 06e8e1550e64ba5cb45f17775d7f26b4815820d2 (patch) | |
tree | c9ffd9a2c2b52e7a9f0cd064d9fbd4e7905a7129 /modules | |
parent | 2bd8c99876801a61d3ddc5306fa1c2b71e1b8733 (diff) | |
download | extra-cmake-modules-06e8e1550e64ba5cb45f17775d7f26b4815820d2.tar.gz extra-cmake-modules-06e8e1550e64ba5cb45f17775d7f26b4815820d2.tar.bz2 |
Make it an error when a method doesn't return anything.
All of KDE SVN compiles with this flag, and has done so for a long time, but this way we can catch
new code with this issue.
svn path=/trunk/KDE/kdelibs/; revision=1188305
Diffstat (limited to 'modules')
-rw-r--r-- | modules/FindKDE4Internal.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index b64be120..c2179aca 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -1205,7 +1205,7 @@ if (CMAKE_COMPILER_IS_GNUCXX) if (CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME STREQUAL GNU) set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common") # As off Qt 4.6.x we need to override the new exception macros if we want compile with -fno-exceptions - set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common") + set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Werror=return-type") add_definitions (-D_BSD_SOURCE) endif (CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME STREQUAL GNU) |