Disable all warnings
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 9e90ce1..c11b346 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -35,7 +35,7 @@
run: sudo apt-get install -y ninja-build clang-tidy-14
- name: Generate
- run: cmake -B build -S . -G Ninja -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -D CMAKE_CXX_CLANG_TIDY="clang-tidy-14;-warnings-as-errors=*" -D CMAKE_CXX_FLAGS="${{ matrix.flags }} -Wno-unknown-pragmas"
+ run: cmake -B build -S . -G Ninja -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -D CMAKE_CXX_CLANG_TIDY="clang-tidy-14;-warnings-as-errors=*" -D CMAKE_CXX_FLAGS="${{ matrix.flags }} -Wno-everything"
# (clang-diagnostic-)unknown-pragmas is disabled due to https://github.com/clangd/clangd/issues/1167
- name: Build
diff --git a/examples/all_features/stringification.cpp b/examples/all_features/stringification.cpp
index 985df7b..0b1afb7 100644
--- a/examples/all_features/stringification.cpp
+++ b/examples/all_features/stringification.cpp
@@ -46,14 +46,13 @@
#endif
TEST_CASE("no headers") {
- DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wtautological-pointer-compare")
- // NOLINTBEGIN(clang-diagnostic-tautological-pointer-compare)
-
char chs[] = { '1', 'a', 's' }; // NOLINT(*-avoid-c-arrays)
+ // NOLINTNEXTLINE(clang-diagnostic-tautological-pointer-compare)
MESSAGE(chs); CHECK(chs == nullptr);
MESSAGE("1as"); CHECK("1as" == nullptr);
int ints[] = { 0, 1, 1, 2, 3, 5, 8, 13 }; // NOLINT(*-avoid-c-arrays)
+ // NOLINTNEXTLINE(clang-diagnostic-tautological-pointer-compare)
MESSAGE(ints); CHECK(ints == nullptr);
MESSAGE(MOVE(ints)); // NOLINT(*-move-const-arg)
@@ -72,9 +71,6 @@
MESSAGE(A); CHECK(A == C);
MESSAGE(doctest::toString<int>());
-
- // NOLINTEND(clang-diagnostic-tautological-pointer-compare)
- DOCTEST_CLANG_SUPPRESS_WARNING_POP
}
DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGIN