summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-12 10:29:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-12 14:34:26 +0200
commitdc56e8c2380e07deb9678d87f7eb64f18c79d0ec (patch)
treebf1e71594ce6f162b5ea5bbae531e0fb86547d98 /solenv
parentaa5ae14882a0d41a60ed6b056f3a943e22cf349e (diff)
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.grandin@collabora.co.uk>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/com_GCC_defs.mk1
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 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 \