mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
GH-131296: Suppress "unused label" warning for clang-cl closer to actual occurrence (GH-131900)
This commit is contained in:
parent
66cdb2bd8a
commit
e5f68fd29b
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue