From 73ca600bca42f5ccf507ca4be1f53921973b44fe Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Tue, 28 Aug 2018 18:32:39 +0200 Subject: Fix numerous shadow-warnings for GCC<=4.8 --- test/mapstaticmethods.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/mapstaticmethods.cpp') 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