Skip to content

Commit

Permalink
Ensure that -Wcompound-token-split-by-macro is quietly silenced.
Browse files Browse the repository at this point in the history
Xcode on macOS Catalina comes with Clang that is version 12 but does not
implement -Wcompound-token-split-by-macro. Trying to silence this warning
triggers another warning about an unknown warning. This commit temporarily sets
-Wunknown-warning-option so that -Wcompound-token-split-by-macro can always be
silenced without warnings.

Discussed in radiator-software#383.
  • Loading branch information
h-vn committed Mar 31, 2022
1 parent 3a6fd89 commit 205c866
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SSLeay.xs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@
* Perl < 5.35.2 with Clang >= 12 - see GH-383
*/
#if NET_SSLEAY_PERL_VERSION < 5035002 && defined(__clang__) && defined(__clang_major__) && __clang_major__ >= 12
#pragma clang diagnostic ignored "-Wunknown-warning-option"
#pragma clang diagnostic ignored "-Wcompound-token-split-by-macro"
#pragma clang diagnostic warning "-Wunknown-warning-option"
#endif

#ifdef __cplusplus
Expand Down

0 comments on commit 205c866

Please sign in to comment.