Fix warnings in ExtraTests and Examples

This commit is contained in:
Martin Hořeňovský committed 2020-02-26 16:07:54 +01:00
1 parent 33b47f7309
commit d1ffaf55a1
8 files changed
+27 -12

No files matched your search

+6 -4
View File
@@ -11,11 +11,13 @@
#include <type_traits>
#include <stdexcept>
[[noreturn]]
void this_throws() {
throw std::runtime_error("Some msg");
namespace {
[[noreturn]]
void this_throws() {
throw std::runtime_error("Some msg");
}
void this_doesnt_throw() {}
}
void this_doesnt_throw() {}
CATCH_TEST_CASE("PrefixedMacros") {
using namespace Catch::Matchers;
@@ -7,9 +7,11 @@
#include <catch2/catch_default_main.hpp>
#include <catch2/catch_test_macros.hpp>
struct Hidden {};
namespace {
struct Hidden {};
bool operator==(Hidden, Hidden) { return true; }
bool operator==(Hidden, Hidden) { return true; }
}
TEST_CASE("DisableStringification") {
REQUIRE( Hidden{} == Hidden{} );