solenv/gbuild/platform/com_GCC_defs.mk |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit a95bf932ed22abbb346b1d70e3c32578074667f3
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Sat Aug 6 12:47:22 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sat Aug 6 15:05:16 2022 +0200

    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.gran...@collabora.co.uk>

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 \

Reply via email to