Browse Source

GL: Emscripten's Clang 10 actually isn't Clang 10.

pull/419/merge
Vladimír Vondruš 2 years ago
parent
commit
9208922c2b
  1. 6
      src/Magnum/GL/Implementation/driverSpecific.cpp

6
src/Magnum/GL/Implementation/driverSpecific.cpp

@ -653,9 +653,11 @@ void Context::setupDriverWorkarounds() {
#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. */
is new in Clang 10, so just ignore both. HOWEVER, Emscripten often
uses a prerelease Clang, so if it reports version 10, it's likely
version 9. So check for versions _above_ 10 instead. */
#pragma GCC diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
#if __clang_major__ >= 10
#if __clang_major__ > 10
#pragma GCC diagnostic ignored "-Wc++20-extensions"
#endif
const Int firefoxVersion = EM_ASM_INT({

Loading…
Cancel
Save