File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 103103# define CATCH_INTERNAL_SUPPRESS_UNUSED_VARIABLE_WARNINGS \
104104 _Pragma ( " clang diagnostic ignored \" -Wunused-variable\" " )
105105
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
108116
109117# define CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS \
110118 _Pragma ( " clang diagnostic ignored \" -Wunused-template\" " )
You can’t perform that action at this time.
0 commit comments