Skip to content

Commit

Permalink
Fix -Wunknown-pragmas warnings with gcc in swift demangling code
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Aug 5, 2024
1 parent 8242cd4 commit 10cf431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third_party/swift/include/swift/Demangling/ManglingMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
#define MANGLE_AS_STRING(M) STRINGIFY_MANGLING(M)

/// The mangling prefix for the new mangling.
#if !defined(_MSC_VER) || _MSC_VER-0 >= 1926
#if defined(__clang__)
_Pragma("clang diagnostic push")
_Pragma("clang diagnostic ignored \"-Wdollar-in-identifier-extension\"")
#endif
#define MANGLING_PREFIX $s
#if !defined(_MSC_VER) || _MSC_VER-0 >= 1926
#if defined(__clang__)
_Pragma("clang diagnostic pop")
#endif

Expand Down

0 comments on commit 10cf431

Please sign in to comment.