diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-08-28 20:05:44 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-08-28 20:07:23 +0100 |
commit | 831c69f9397ed813364235dddf465996d361d0a8 (patch) | |
tree | 9fb41c334fd847955e3a4d31da77d0ec40fa80dc /include/vcl | |
parent | 34700400247e378e074ce4164ab2809edb092201 (diff) |
Avoid bogus warnings with VCL_GL_INFO, by making the optimizer work.
Change-Id: Ia4afcd58b4ce0b4d6d9708a4cede0857b7633b9e
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/opengl/OpenGLHelper.hxx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/include/vcl/opengl/OpenGLHelper.hxx b/include/vcl/opengl/OpenGLHelper.hxx index f2fb2141af37..fd9c2de6bcbb 100644 --- a/include/vcl/opengl/OpenGLHelper.hxx +++ b/include/vcl/opengl/OpenGLHelper.hxx @@ -24,16 +24,15 @@ #endif /// Helper to do a SAL_INFO as well as a GL log. -#if OSL_DEBUG_LEVEL > 0 -# define VCL_GL_INFO(area,stream) \ - do { \ - ::std::ostringstream detail_stream; \ - detail_stream << stream; \ - OpenGLHelper::debugMsgStream((area),detail_stream); \ +#define VCL_GL_INFO(area,stream) \ + do { \ + if (SAL_DETAIL_ENABLE_LOG_INFO) \ + { \ + ::std::ostringstream detail_stream; \ + detail_stream << stream; \ + OpenGLHelper::debugMsgStream((area),detail_stream); \ + } \ } while (0) -#else -# define VCL_GL_INFO(area,stream) -#endif class VCL_DLLPUBLIC OpenGLHelper { |