-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
GH-131296: move suppression of "unused label" warning for clang-cl on Windows #131900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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__) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On Windows, clang-cl does not define Slightly further down, for MSVC the same warning (4102) is suppressed using The only occurrences of this warning in the whole code base stem from |
||
# pragma GCC diagnostic push | ||
# pragma GCC diagnostic ignored "-Wunused-label" | ||
#elif defined(_MSC_VER) /* MS_WINDOWS */ | ||
|
@@ -1168,7 +1168,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int | |
# 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) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-Wno-unused-label
is moved toceval.c
.-Wno-deprecated-non-prototype
is removed, because it does not "fire" for the whole code base.