-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
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
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... */ | ||
|
||
| # 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]