GH-131296: Suppress "unused label" warning for clang-cl closer to actual occurrence (GH-131900)

This commit is contained in:
Chris Eibl 2025-04-11 00:17:33 +02:00 committed by GitHub
parent 66cdb2bd8a
commit e5f68fd29b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -891,7 +891,7 @@ extern void _PyUOpPrint(const _PyUOpInstruction *uop);
if computed gotos aren't used. */
/* TBD - what about other compilers? */
#if defined(__GNUC__)
#if defined(__GNUC__) || defined(__clang__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-label"
#elif defined(_MSC_VER) /* MS_WINDOWS */
@ -1179,7 +1179,7 @@ early_exit:
# pragma optimize("", on)
#endif
#if defined(__GNUC__)
#if defined(__GNUC__) || defined(__clang__)
# pragma GCC diagnostic pop
#elif defined(_MSC_VER) /* MS_WINDOWS */
# pragma warning(pop)