diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-05-29 11:29:31 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-03-23 19:34:31 +0100 |
commit | 333647b7472262cce023da5d49d538a69d6bc913 (patch) | |
tree | ebbabc2cc23081011e17832da25446e61ed38425 | |
parent | 5597f149a27dae43cbc9dfc469689bd6e4f03a17 (diff) |
gbuild: avoid -Wunused-macros with clang and icecream
Apparently the preprocessor leaves in the #define but expands the uses,
so all macros are reported as unused.
Change-Id: I064a8852ad1080c22440c2b0d05c9dfddcec45f1
Reviewed-on: https://gerrit.libreoffice.org/54992
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
(cherry picked from commit a404d5525256e3a59948ec4a1894e70179b7d783)
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index ac3cbc366cf7..8edc1bf7b48a 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -55,7 +55,7 @@ gb_CFLAGS_COMMON := \ -Wstrict-prototypes \ -Wundef \ -Wunreachable-code \ - -Wunused-macros \ + $(if $(and $(COM_IS_CLANG),$(findstring icecc,$(CC))),,-Wunused-macros) \ -finput-charset=UTF-8 \ -fmessage-length=0 \ -fno-common \ @@ -69,7 +69,7 @@ gb_CXXFLAGS_COMMON := \ -Wextra \ -Wundef \ -Wunreachable-code \ - -Wunused-macros \ + $(if $(and $(COM_IS_CLANG),$(findstring icecc,$(CXX))),,-Wunused-macros) \ -finput-charset=UTF-8 \ -fmessage-length=0 \ -fno-common \ |