diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-05-08 15:28:43 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-05-08 15:54:17 +0300 |
commit | 0819628fea8ae7498b4c9130dec8b3e367cba6e5 (patch) | |
tree | 6a0e58359ad0739ec44a6e5ec1a147b8877383b9 /include | |
parent | 66f67fe2fca73ebd22e9097494bd559caf399790 (diff) | |
download | qtlocation-mapboxgl-0819628fea8ae7498b4c9130dec8b3e367cba6e5.tar.gz |
Fix Linux GCC Debug build
Compiler was complaining about shadowed variable after
macro expansion.
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/platform/gl.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/platform/gl.hpp b/include/mbgl/platform/gl.hpp index 5c10f16105..78f5ba0874 100644 --- a/include/mbgl/platform/gl.hpp +++ b/include/mbgl/platform/gl.hpp @@ -39,7 +39,7 @@ struct Error : ::std::runtime_error { void checkError(const char *cmd, const char *file, int line); #if defined(DEBUG) -#define MBGL_CHECK_ERROR(cmd) ([&]() { struct _ { inline ~_() { ::mbgl::gl::checkError(#cmd, __FILE__, __LINE__); } } _; return cmd; }()) +#define MBGL_CHECK_ERROR(cmd) ([&]() { struct __MBGL_C_E { inline ~__MBGL_C_E() { ::mbgl::gl::checkError(#cmd, __FILE__, __LINE__); } } __MBGL_C_E; return cmd; }()) #else #define MBGL_CHECK_ERROR(cmd) (cmd) #endif |