catch2/tests/SelfTest/UsageTests
Alecto Irene Perez 06cf2a4724
Apply PR #2297 to devel branch (#2300)
* Apply PR #2297 to devel branch

It turns out that Issue #2272 partially affected the devel branch. When
building tests with C++20, the compiler emits a warning that top-level
comma expressions in array subscripts are depricated. Warnings are
treated as errors, so this caused the build to fail.

This commit adds localized warning suppression
in accordance with this recommendation here:
https://github.com/catchorg/Catch2/pull/2297#discussion_r720848392

Signed-off-by: Alecto Irene Perez <perez.cs@pm.me>

* Fixed unknown pragma warning on old versions of gcc & clang

This commit fixes an unkwown pragma warning on older versions of GCC
and Clang. These older versions don't have a warning for depricated use
of the comma subscript. Because warning suppression is localized, and
only refers to the comma subscript warning, it doesn't affect compiler
warnings in other parts of the code.

Signed-off-by: Alecto Irene Perez <perez.cs@pm.me>

* More #warning backwards compatibility fixes

Signed-off-by: Alecto Irene Perez <perez.cs@pm.me>
2021-10-21 15:47:21 +02:00
..
Approx.tests.cpp Make Approx::operator() const 2021-08-26 21:27:43 +02:00
BDD.tests.cpp Remove the ill-conceived compilation perf tests using real tests 2021-06-20 19:15:02 +02:00
Benchmark.tests.cpp Standardize header names and file locations 2020-04-24 18:58:44 +02:00
Class.tests.cpp Remove the ill-conceived compilation perf tests using real tests 2021-06-20 19:15:02 +02:00
Compilation.tests.cpp Remove the ill-conceived compilation perf tests using real tests 2021-06-20 19:15:02 +02:00
Condition.tests.cpp Mark !mayfail tests as skipped in the JUnit reporter 2021-10-10 22:21:39 +02:00
Decomposition.tests.cpp Start using piecemeal includes in test files 2020-01-21 10:03:54 +01:00
EnumToString.tests.cpp Standardize header names and file locations 2020-04-24 18:58:44 +02:00
Exception.tests.cpp Rename Contains string matcher builder to ContainsSubstring 2021-09-27 21:28:33 +02:00
Generators.tests.cpp Fix compiling with C++17 + Clang 5 + libstdc++ v5 2021-05-26 00:34:23 +02:00
Matchers.tests.cpp Rename Contains string matcher builder to ContainsSubstring 2021-09-27 21:28:33 +02:00
MatchersRanges.tests.cpp Add more comprehensive tests for the quantifier matchers 2020-12-27 20:20:55 +01:00
Message.tests.cpp Apply PR #2297 to devel branch (#2300) 2021-10-21 15:47:21 +02:00
Misc.tests.cpp Remove stub of obsolete test 2021-09-27 14:45:39 +02:00
ToStringByte.tests.cpp Start using piecemeal includes in test files 2020-01-21 10:03:54 +01:00
ToStringChrono.tests.cpp Unconditionally provide <chrono> StringMakers 2020-02-03 20:53:36 +01:00
ToStringGeneral.tests.cpp Start using piecemeal includes in test files 2020-01-21 10:03:54 +01:00
ToStringOptional.tests.cpp Start using piecemeal includes in test files 2020-01-21 10:03:54 +01:00
ToStringPair.tests.cpp Start using piecemeal includes in test files 2020-01-21 10:03:54 +01:00
ToStringTuple.tests.cpp Start using piecemeal includes in test files 2020-01-21 10:03:54 +01:00
ToStringVariant.tests.cpp Start using piecemeal includes in test files 2020-01-21 10:03:54 +01:00
ToStringVector.tests.cpp Remove catch.hpp 2020-03-29 21:32:13 +02:00
ToStringWhich.tests.cpp Remove testing of CATCH_CONFIG_FALLBACK_STRINGIFIER from SelfTest 2020-01-21 15:14:24 +01:00
Tricky.tests.cpp Fix potential infinite loops in generators combined with section filter 2020-10-23 21:21:15 +02:00
VariadicMacros.tests.cpp Start using piecemeal includes in test files 2020-01-21 10:03:54 +01:00