Pārlūkot izejas kodu

Fixing compiler warning for unused parameter.

Samuel Jaffe 8 gadi atpakaļ
vecāks
revīzija
1cb5a05d58
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      either_stream.t.h

+ 1 - 1
either_stream.t.h

@@ -64,7 +64,7 @@ public:
   void test_either_propogates_error() {
     auto strm = stream::either::make_stream<MathObject>(1.0);
     strm.flatmap([](double d) { return divide(d, 0); })
-    .map([](double d) { TS_FAIL("Operating on bad data"); return 0; })
+    .map([](double) { TS_FAIL("Operating on bad data"); return 0; })
     .match([](double) { TS_FAIL("Expected Error Type"); },
            [](MathError e) { TS_ASSERT_EQUALS( MathError::DivideByZero, e ); });
   }