diff --git a/src/Magnum/GL/Implementation/driverSpecific.cpp b/src/Magnum/GL/Implementation/driverSpecific.cpp index 35147cc5c..e4148ad5d 100644 --- a/src/Magnum/GL/Implementation/driverSpecific.cpp +++ b/src/Magnum/GL/Implementation/driverSpecific.cpp @@ -650,7 +650,13 @@ void Context::setupDriverWorkarounds() { as it neither has any dependencies nor has code that may benefit from settings-based preprocessing done for minification */ #pragma GCC diagnostic push + /* The damn thing moved the warning to another group in some version. + Not sure if it happened in Clang 10 already, but -Wc++20-extensions + is new in Clang 10, so just ignore both. */ #pragma GCC diagnostic ignored "-Wgnu-zero-variadic-macro-arguments" + #if __clang_major__ >= 10 + #pragma GCC diagnostic ignored "-Wc++20-extensions" + #endif const Int firefoxVersion = EM_ASM_INT({ var match = navigator.userAgent.match(/Firefox\\\\/(\\\\d+)/); if(match) return match[1]|0; /* coerce to an int (remember asm.js?) */