[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/cmake/modules
From: David Faure <faure () kde ! org>
Date: 2010-10-21 23:21:14
Message-ID: 20101021232114.99CDCAC897 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1188305 by dfaure:
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.
M +1 -1 FindKDE4Internal.cmake
--- trunk/KDE/kdelibs/cmake/modules/FindKDE4Internal.cmake #1188304:1188305
@@ -1205,7 +1205,7 @@
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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic