From 769415767964a8347498ee3c7d9d4956d0ddb5a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 21 Apr 2016 12:14:48 +0200 Subject: [PATCH] Fix annoying unused variable warning on ES. --- src/Magnum/Version.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Magnum/Version.h b/src/Magnum/Version.h index 40f86ed07..a329c43f7 100644 --- a/src/Magnum/Version.h +++ b/src/Magnum/Version.h @@ -132,13 +132,13 @@ inline std::pair version(Version version) { Always `true` on @ref MAGNUM_TARGET_GLES "OpenGL ES" and WebGL build. */ +#ifndef MAGNUM_TARGET_GLES constexpr bool isVersionES(Version version) { - #ifndef MAGNUM_TARGET_GLES return Int(version) & Implementation::VersionESMask; - #else - return true; - #endif } +#else +constexpr bool isVersionES(Version) { return true; } +#endif /** @debugoperatorenum{Magnum::Version} */ MAGNUM_EXPORT Debug& operator<<(Debug& debug, Version value);