[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
Thu Nov 3 11:22:14 CDT 2011


branch "master" has been updated
       via  e86ed7d6c0ebfd2cd120798edd0fc19229649242 (commit)
      from  c11027fbdbb233f89a8a285939b05ce6c74fa8ab (commit)

Summary of changes:
 AsteriskSCF.cmake |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
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

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


-- 
asterisk-scf/release/cmake.git



More information about the asterisk-scf-commits mailing list