Skip to content

Commit

Permalink
Fix CID 1393240 (Missing return statement)
Browse files Browse the repository at this point in the history
This also fixes a compiler warning:

unittest/progress_test.cc:59:9: warning:
 no return statement in function returning non-void [-Wreturn-type]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Jun 20, 2018
1 parent cb6b1c1 commit c8dd445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unittest/progress_test.cc
Expand Up @@ -55,7 +55,7 @@ class QuickTest : public testing::Test {
return instance->classicProgress( progress );
};
monitor.cancel = []( void* ths, int words ) -> bool {
((ClassicMockProgressSink*)ths)->cancel( words );
return ((ClassicMockProgressSink*)ths)->cancel(words);
};
monitor.cancel_this = this;
instance = this;
Expand Down

0 comments on commit c8dd445

Please sign in to comment.