[asterisk-scf-commits] asterisk-scf/integration/gitall.git branch "disable-ice-warnings" created.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Oct 25 08:53:51 CDT 2011


branch "disable-ice-warnings" has been created
        at  c1bbe352913e5ad8a06ffe396ad573f1d85e0796 (commit)

- Log -----------------------------------------------------------------
commit c1bbe352913e5ad8a06ffe396ad573f1d85e0796
Merge: 528d759 e86ed7d
Author: David M. Lee <dlee at digium.com>
Date:   Tue Oct 25 08:52:37 2011 -0500

    Merge branch 'disable-ice-warnings' of git://git.asterisk.org/asterisk-scf/integration/cmake


commit e86ed7d6c0ebfd2cd120798edd0fc19229649242
Author: David M. Lee <dlee at digium.com>
Date:   Mon Oct 24 12:54:39 2011 -0500

    Disable warnings for generated code

diff --git a/AsteriskSCF.cmake b/AsteriskSCF.cmake
index 72947fb..f0e16eb 100644
--- a/AsteriskSCF.cmake
+++ b/AsteriskSCF.cmake
@@ -913,6 +913,8 @@ function(__astscf_component_add_one_slice COMPONENT COLLECTION COLLECTION_DIR SL
   # the Slice and generated_files are now sources for the component
   set(file_list ${${COMPONENT}_SOURCES} ${COLLECTION_DIR}/${SLICE} ${generated_files})
   set(${COMPONENT}_SOURCES ${file_list} PARENT_SCOPE)
+  # disable warnings for generated files.  rarely are these real bugs.
+  set_source_files_properties(${file_list} PROPERTIES COMPILE_FLAGS "-w")
 endfunction()
 
 # Function which collects Slice files used by a component, causing them

commit c11027fbdbb233f89a8a285939b05ce6c74fa8ab
Author: Brent Eagles <beagles at digium.com>
Date:   Wed Aug 10 19:58:37 2011 -0230

    Upping the test timer to allow for longer running tests and adding a function
    to disable warnings-as-errors on a project by project basis.

diff --git a/AsteriskSCF.cmake b/AsteriskSCF.cmake
index 799747e..72947fb 100644
--- a/AsteriskSCF.cmake
+++ b/AsteriskSCF.cmake
@@ -55,7 +55,7 @@
 #
 
 set(MIN_BOOST_VERSION 1.40)
-set(TEST_TIMEOUT_SEC 60)
+set(TEST_TIMEOUT_SEC 90)
 
 # CMake mistakenly thinks that GCC on OS X doesn't support -isystem.
 # See http://public.kitware.com/Bug/view.php?id=10837
@@ -271,6 +271,14 @@ macro(__astscf_compute_test_paths)
   endif()
 endmacro()
 
+function(astscf_allowwarnings)
+  if(CMAKE_COMPILER_IS_GNUCXX)
+    unset(_lv)
+    string(REPLACE "-Werror" "" _lv "${CMAKE_CXX_FLAGS_DEBUG}")
+    set(CMAKE_CXX_FLAGS_DEBUG "${_lv}" PARENT_SCOPE)
+  endif()
+endfunction()
+
 # Function which initializes project specific things
 function(astscf_project NAME ICE_VERSION)
   message(STATUS "Setting up project ${NAME} for Ice version ${ICE_VERSION}")

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/gitall.git



More information about the asterisk-scf-commits mailing list