diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-08-28 18:32:39 +0200 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-08-28 18:32:39 +0200 |
commit | 73ca600bca42f5ccf507ca4be1f53921973b44fe (patch) | |
tree | b7e2608239cd7179c02efcfe2bddfb5c4d74ca04 /test | |
parent | ef4d79fed8b84f03fe3c7ace98442c822cf3472a (diff) |
Fix numerous shadow-warnings for GCC<=4.8
Diffstat (limited to 'test')
-rw-r--r-- | test/mapstaticmethods.cpp | 4 |
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, |