Repository: qpid-proton Updated Branches: refs/heads/master e9f9eef00 -> d8412be36
NO-JIRA: Suppress warnings from swig compilation. Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/19db699f Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/19db699f Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/19db699f Branch: refs/heads/master Commit: 19db699f888c45b04dd6190c373ed859bf176cbf Parents: e9f9eef Author: Alan Conway <[email protected]> Authored: Fri Jul 15 17:52:30 2016 -0400 Committer: Alan Conway <[email protected]> Committed: Tue Jul 19 12:33:00 2016 -0400 ---------------------------------------------------------------------- proton-c/bindings/perl/CMakeLists.txt | 8 +------- proton-c/bindings/python/CMakeLists.txt | 3 +++ 2 files changed, 4 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/19db699f/proton-c/bindings/perl/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/proton-c/bindings/perl/CMakeLists.txt b/proton-c/bindings/perl/CMakeLists.txt index 33aa63a..1356cce 100644 --- a/proton-c/bindings/perl/CMakeLists.txt +++ b/proton-c/bindings/perl/CMakeLists.txt @@ -25,13 +25,7 @@ execute_process(COMMAND perl -MConfig -e "print \$Config{ccflags}" OUTPUT_VARIABLE PERLCFLAGS) # Disable harmlesss warnings from the generted perlPERL_wrap.c -include(CheckCCompilerFlag) -foreach(flag -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable) - check_c_compiler_flag(${flag} allowed) - if (allowed) - set(PERLCFLAGS "${PERLCFLAGS} ${flag}") - endif() -endforeach() +set(PERLCFLAGS "${PERLCFLAGS} -w") include_directories("${PERL_INCLUDE_PATH}") http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/19db699f/proton-c/bindings/python/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/proton-c/bindings/python/CMakeLists.txt b/proton-c/bindings/python/CMakeLists.txt index 7da9247..fc28417 100644 --- a/proton-c/bindings/python/CMakeLists.txt +++ b/proton-c/bindings/python/CMakeLists.txt @@ -26,6 +26,9 @@ include_directories (${PYTHON_INCLUDE_PATH}) set_source_files_properties(cproton.i PROPERTIES CPLUSPLUS NO) +# Suppress warnings in swig generated code. +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") + list(APPEND SWIG_MODULE_cproton_EXTRA_DEPS ${CMAKE_SOURCE_DIR}/proton-c/include/proton/cproton.i ${PROTON_HEADERS} --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
