I have the following code:
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
However if I compile my code with Clang, I get the error error: unknown warning group
. Why does clang compile the code after the #ifdef __GNUC__
?