-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
GH-131296: fix clang-cl warning on Windows in sre.c #131593
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 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,7 +92,11 @@ static unsigned int sre_toupper(unsigned int ch) { | |
/* -------------------------------------------------------------------- */ | ||
|
||
#if defined(_MSC_VER) | ||
#pragma optimize("agtw", on) /* doesn't seem to make much difference... */ | ||
# if defined(__clang__) | ||
# pragma optimize("", on) | ||
# else | ||
# pragma optimize("gt", on) /* doesn't seem to make much difference... */ | ||
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.
It was then changed to 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. @zooba Again a very Windows (MSVC) specific one. Back then, you've changed OTOH, even though the comment says |
||
# endif | ||
#pragma warning(disable: 4710) /* who cares if functions are not inlined ;-) */ | ||
/* fastest possible local call under MSVC */ | ||
#define LOCAL(type) static __inline type __fastcall | ||
|
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.
Fix warning : unexpected argument 'agtw' to '#pragma optimize'; expected "" [-Wignored-pragmas]