[asterisk-scf-commits] asterisk-scf/release/cmake.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Fri Apr 15 10:24:12 CDT 2011
branch "master" has been updated
via f497f9c0235bf0037cbc95f7c42b6c3d24b5840a (commit)
via abe903d9fedf8ed43a7d6473ede1f7d430b0bc1a (commit)
from df39a18da3e617f8ee16a559143d6ac72f312063 (commit)
Summary of changes:
AsteriskSCF.cmake | 2 +-
modules/pjproject.cmake | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit f497f9c0235bf0037cbc95f7c42b6c3d24b5840a
Author: Kevin P. Fleming <kpfleming at digium.com>
Date: Thu Apr 14 13:16:01 2011 -0500
Enable a few more useful GCC warning messages for various suspect (or downright
broken) code constructs.
diff --git a/AsteriskSCF.cmake b/AsteriskSCF.cmake
index 48aaa53..6d22fd8 100644
--- a/AsteriskSCF.cmake
+++ b/AsteriskSCF.cmake
@@ -260,7 +260,7 @@ function(asterisk_scf_project NAME ICE_VERSION)
if(CMAKE_COMPILER_IS_GNUCXX)
list(APPEND cxx_flags ${ICE_CXX_FLAGS})
- list(APPEND cxx_flags_debug "-Werror" "-Wall" "-g3")
+ list(APPEND cxx_flags_debug "-Werror" "-Wshadow" "-Wmissing-format-attribute" "-Wformat=2" "-Wall" "-Wextra" "-Wpointer-arith" "-Wconversion" "-Wlogical-op" "-g3")
list(APPEND cxx_flags_profile "-ftest-coverage" "-fprofile-arcs")
endif()
commit abe903d9fedf8ed43a7d6473ede1f7d430b0bc1a
Author: Kevin P. Fleming <kpfleming at digium.com>
Date: Thu Apr 14 13:15:25 2011 -0500
Mark pjproject include directory as a 'system' directory so that the compiler
won't generate warnings for constructs in those headers.
diff --git a/modules/pjproject.cmake b/modules/pjproject.cmake
index 1ce4a82..77d0847 100644
--- a/modules/pjproject.cmake
+++ b/modules/pjproject.cmake
@@ -78,7 +78,7 @@ function(pjproject_build PJPROJECT_COMPONENT)
if(${PJPROJECT_COMPONENT} STREQUAL "pjmedia")
link_directories("${CMAKE_SOURCE_DIR}/pjproject/third_party/lib")
endif()
- include_directories("${CMAKE_SOURCE_DIR}/pjproject/${PJPROJECT_COMPONENT}/include")
+ include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/pjproject/${PJPROJECT_COMPONENT}/include")
link_directories("${CMAKE_SOURCE_DIR}/pjproject/${PJPROJECT_COMPONENT}/lib")
endfunction()
-----------------------------------------------------------------------
--
asterisk-scf/release/cmake.git
More information about the asterisk-scf-commits
mailing list