forked from TartanLlama/expected
Fix warnings in test (#92)
* Convert tabs to spaces * Remove extra semicolons in test * Fix warnings in test -Wreturn-type -Wunused-parameter -Wunused-value * Fix -Wunused-variable warning in test The variable 'failptr' is unused. From looking at the other variables in the test case, it seems the fix is to first remove 'failptr' and then rename 'efail' to 'failptr'. * Fix -Wunused-variable warning in test * Fix -Wmacro-redefined warning in test STATIC_REQUIRE has a previous definition in catch2/catch.hpp.
This commit is contained in:
+3
-3
@@ -38,9 +38,9 @@ TEST_CASE("Triviality", "[bases.triviality]") {
|
||||
{
|
||||
struct T {
|
||||
T(const T&){}
|
||||
T(T&&) {};
|
||||
T& operator=(const T&) {}
|
||||
T& operator=(T&&) {};
|
||||
T(T&&) {}
|
||||
T& operator=(const T&) { return *this; }
|
||||
T& operator=(T&&) { return *this; }
|
||||
~T(){}
|
||||
};
|
||||
REQUIRE(!std::is_trivially_copy_constructible<tl::expected<T,int>>::value);
|
||||
|
||||
Reference in New Issue
Block a user