[Libreoffice-commits] core.git: bin/gen-iwyu-dummy-lib

Jorenz Paragas j.paragas.237 at gmail.com
Wed Apr 27 14:34:31 UTC 2016


 bin/gen-iwyu-dummy-lib |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit de4b758ff31f9e92dffb8fe3cf295a7d3c12f611
Author: Jorenz Paragas <j.paragas.237 at gmail.com>
Date:   Tue Apr 26 17:38:46 2016 -0700

    Improve the gen-iwyu-dummy-lib script a bit.
    
    - Fix the check for --enable-compiler-plugins not being included in
      the resulting StaticLibrary_iwyudummy.mk file.
    - Disable warnings about unused const variables to reduce noise.
    
    Change-Id: If54dfd55f46631bbc526326bed5c272358fb9cf3
    Reviewed-on: https://gerrit.libreoffice.org/24419
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/bin/gen-iwyu-dummy-lib b/bin/gen-iwyu-dummy-lib
index 1d47f04..aa757b6 100755
--- a/bin/gen-iwyu-dummy-lib
+++ b/bin/gen-iwyu-dummy-lib
@@ -37,12 +37,12 @@ echo '$(eval $(call gb_Module_add_targets,iwyudummy,StaticLibrary_iwyudummy))' >
 
 # prevent some common configuration errors
 echo 'ifneq ($(COMPILER_PLUGINS),)' > ${iwyu_LIB}
-echo '    $(call gb_Output_error,--enable-compiler-plugins does not work well with this: bailing out)' > ${iwyu_LIB}
-echo 'endif' > ${iwyu_LIB}
+echo '    $(call gb_Output_error,--enable-compiler-plugins does not work well with this: bailing out)' >> ${iwyu_LIB}
+echo 'endif' >> ${iwyu_LIB}
 
-echo '$(eval $(call gb_StaticLibrary_StaticLibrary,iwyudummy))' > ${iwyu_LIB}
+echo '$(eval $(call gb_StaticLibrary_StaticLibrary,iwyudummy))' >> ${iwyu_LIB}
 # clang will "compile" headers to .gch by default
-echo '$(eval $(call gb_StaticLibrary_add_cxxflags,iwyudummy,-x c++ -Wno-unused-macros))' >> ${iwyu_LIB}
+echo '$(eval $(call gb_StaticLibrary_add_cxxflags,iwyudummy,-x c++ -Wno-unused-macros -Wno-unused-const-variable))' >> ${iwyu_LIB}
 echo '$(eval $(call gb_StaticLibrary_use_custom_headers,iwyudummy,officecfg/registry))' >> ${iwyu_LIB}
 echo '$(eval $(call gb_StaticLibrary_use_sdk_api,iwyudummy))' >> ${iwyu_LIB}
 echo '$(eval $(call gb_StaticLibrary_use_externals,iwyudummy,\' >> ${iwyu_LIB}


More information about the Libreoffice-commits mailing list