diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-06 12:47:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-06 15:05:16 +0200 |
commit | a95bf932ed22abbb346b1d70e3c32578074667f3 (patch) | |
tree | 35e0ccfc3f6fe0c2fded06d2214dc5c7321fd8d9 /solenv | |
parent | 5fecf10b9ef6e76aa1d06b7ab350abb5a495dda0 (diff) |
turn on -Wshadow-all for clang compilers
mostly so that it matches the existing behaviour of the GCC compiler,
which makes it easier submitting patches when building locally with
clang
Change-Id: I0197ec61bc97a3899c2b379efa0f2ad8ed028986
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137896
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index 004945a32d32..443ff10eaae1 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -70,6 +70,7 @@ gb_CFLAGS_COMMON := \ -Wunreachable-code \ $(if $(or $(and $(COM_IS_CLANG),$(or $(findstring icecc,$(CC)),$(findstring icecc,$(CCACHE_PREFIX)))),$(findstring sccache,$(CC))),,-Wunused-macros) \ $(if $(COM_IS_CLANG),-Wembedded-directive) \ + $(if $(COM_IS_CLANG),-Wshadow-all) \ -finput-charset=UTF-8 \ -fmessage-length=0 \ -fno-common \ |