Skip to content

Commit

Permalink
test: Downgrade errors to warnings for clang-cl
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Oct 30, 2024
1 parent 79caf85 commit 26f5a78
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/c11_c99_pedantic.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "../mcfgthread/c11.h"

#if defined __STDC_VERSION__ && (__STDC_VERSION__ >= 201112L)
# error Please compile this file as C99.
# warning Please compile this file as C99.
#endif

int
Expand Down
4 changes: 2 additions & 2 deletions test/cxx11_no_exceptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
#include "../mcfgthread/cxx11.hpp"

#ifdef __EXCEPTIONS
# error -fno-exceptions
# warning -fno-exceptions
#endif

#ifdef __GXX_RTTI
# error -fno-rtti
# warning -fno-rtti
#endif

int
Expand Down
2 changes: 1 addition & 1 deletion test/cxx11_pedantic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "../mcfgthread/cxx11.hpp"

#if __cplusplus < 201103L
# error Please compile this file as C++11.
# warning Please compile this file as C++11.
#endif

int
Expand Down
2 changes: 1 addition & 1 deletion test/cxx14_pedantic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "../mcfgthread/cxx11.hpp"

#if __cplusplus < 201402L
# error Please compile this file as C++14.
# warning Please compile this file as C++14.
#endif

int
Expand Down
2 changes: 1 addition & 1 deletion test/gthr_c89_pedantic.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../mcfgthread/tls.h"

#if defined __STDC_VERSION__ && (__STDC_VERSION__ >= 199901L)
# error Please compile this file as C89.
# warning Please compile this file as C89.
#endif

int
Expand Down
2 changes: 1 addition & 1 deletion test/gthr_cxx98_pedantic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../mcfgthread/tls.h"

#if defined __STDC_VERSION__ && (__STDC_VERSION__ >= 199901L)
# error Please compile this file as C89.
# warning Please compile this file as C89.
#endif

int
Expand Down

0 comments on commit 26f5a78

Please sign in to comment.