aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/mapstaticmethods.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/mapstaticmethods.cpp')
-rw-r--r--test/mapstaticmethods.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/mapstaticmethods.cpp b/test/mapstaticmethods.cpp
index f32c0beec..d0128ba94 100644
--- a/test/mapstaticmethods.cpp
+++ b/test/mapstaticmethods.cpp
@@ -9,8 +9,12 @@
#include "main.h"
+// GCC<=4.8 has spurious shadow warnings, because `ptr` re-appears inside template instantiations
+// workaround: put these in an anonymous namespace
+namespace {
float *ptr;
const float *const_ptr;
+}
template<typename PlainObjectType,
bool IsDynamicSize = PlainObjectType::SizeAtCompileTime == Dynamic,