Correction to previous Clang strict warning commit

Need to only pop diagnostic if it was really pushed.

Pointed out by Aras Pranckevicius, thanks!
This commit is contained in:
Sergey Sharybin 2022-02-10 16:05:11 +01:00
parent b73c265974
commit ad77b52abc
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ constexpr FormattingSyntax syntax_elem_to_formatting(const eMTLSyntaxElement key
}
}
}
#if defined __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
# pragma GCC diagnostic pop
#endif