summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-09 10:17:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-09 11:16:49 +0200
commit89b8e97bf325a92f49756fe903b322653cd88266 (patch)
treed15d6b6c1566c4829e43e944056d854b3943ecf7 /svl
parent49297dc0b5fd4f8ef9f7b650342fe462f76d08d3 (diff)
workaround -Wshadow in libcuckoo
that triggers with gcc (Ubuntu 10.3.0-1ubuntu1~20.10) 10.3.0 Change-Id: I038e229890fcc3c8bb7986a747434e9e033b4f5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121838 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/misc/sharedstringpool.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/svl/source/misc/sharedstringpool.cxx b/svl/source/misc/sharedstringpool.cxx
index bf1f5554b957..7abe3ea77507 100644
--- a/svl/source/misc/sharedstringpool.cxx
+++ b/svl/source/misc/sharedstringpool.cxx
@@ -15,6 +15,10 @@
#include <unordered_map>
#include <unordered_set>
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wshadow"
+#endif
#if defined __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
@@ -30,6 +34,9 @@
#if defined __clang__
#pragma clang diagnostic pop
#endif
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
namespace svl
{