File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 103
103
# define CATCH_INTERNAL_SUPPRESS_UNUSED_VARIABLE_WARNINGS \
104
104
_Pragma ( " clang diagnostic ignored \" -Wunused-variable\" " )
105
105
106
- # define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS \
107
- _Pragma ( " clang diagnostic ignored \" -Wgnu-zero-variadic-macro-arguments\" " )
106
+ # if (__clang_major__ >= 20)
107
+ # define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS \
108
+ _Pragma ( " clang diagnostic ignored \" -Wvariadic-macro-arguments-omitted\" " )
109
+ # elif (__clang_major__ == 19)
110
+ # define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS \
111
+ _Pragma ( " clang diagnostic ignored \" -Wc++20-extensions\" " )
112
+ # else
113
+ # define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS
114
+ _Pragma ( " clang diagnostic ignored \" -Wgnu-zero-variadic-macro-arguments\" " )
115
+ # endif
108
116
109
117
# define CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS \
110
118
_Pragma ( " clang diagnostic ignored \" -Wunused-template\" " )
You can’t perform that action at this time.
0 commit comments