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

New commits:
commit dc56e8c2380e07deb9678d87f7eb64f18c79d0ec
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Mon Jul 12 10:29:10 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Jul 12 14:34:26 2021 +0200

    enable -Wshadow on clang
    
    which is on for gcc, but doesn't seem to be on for clang
    
    Change-Id: If71e03511e093280db55426fd4c1d076f760b5a9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118768
    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 09ca90a91f69..da00c5a8ed9e 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -73,6 +73,7 @@ gb_CXXFLAGS_COMMON := \
        -Wextra \
        -Wundef \
        -Wunreachable-code \
+       -Wshadow \
        $(if $(or $(and $(COM_IS_CLANG),$(or $(findstring 
icecc,$(CXX)),$(findstring icecc,$(CCACHE_PREFIX)))),$(findstring 
sccache,$(CXX))),,-Wunused-macros) \
        $(if $(COM_IS_CLANG),-Wembedded-directive) \
        -finput-charset=UTF-8 \
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to