[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 03/03: cmake: turn off unused-but-set-varia
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 03/03: cmake: turn off unused-but-set-variable when compiling swig generated code |
Date: |
Tue, 19 Aug 2014 15:40:30 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 84ce73af3dca41b8acec6d59fca65901e1fe0045
Author: Johnathan Corgan <address@hidden>
Date: Mon Aug 18 19:23:06 2014 -0700
cmake: turn off unused-but-set-variable when compiling swig generated code
---
cmake/Modules/UseSWIG.cmake | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cmake/Modules/UseSWIG.cmake b/cmake/Modules/UseSWIG.cmake
index 9dd1c3c..008bfa0 100644
--- a/cmake/Modules/UseSWIG.cmake
+++ b/cmake/Modules/UseSWIG.cmake
@@ -145,6 +145,11 @@ macro(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile)
"${swig_generated_file_fullname}.c")
endif()
+ # Shut up some warnings from poor SWIG code generation that we
+ # can do nothing about.
+ set_source_files_properties( ${swig_generated_file_fullname}
+ PROPERTIES COMPILE_FLAGS "-Wno-unused-but-set-variable")
+
#message("Full path to source file: ${swig_source_file_fullname}")
#message("Full path to the output file: ${swig_generated_file_fullname}")
get_directory_property(cmake_include_directories INCLUDE_DIRECTORIES)