mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Fix a few Clang compiler warnings (-Wunreachable-code-return)
1 left: src/oatpp/core/async/Coroutine.cpp:325:10: warning: 'return' will never be executed [-Wunreachable-code-return] return std::forward<oatpp::async::Action>(action); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
This commit is contained in:
parent
a93fa88897
commit
9a2854be58
@ -160,7 +160,6 @@ public:
|
||||
OATPP_LOGE("[FullAsyncClientTest::ClientCoroutine_getRootAsync::handleError()]", "Error. %s", error->what())
|
||||
}
|
||||
OATPP_ASSERT(!"Error")
|
||||
return error;
|
||||
}
|
||||
|
||||
};
|
||||
@ -202,7 +201,6 @@ public:
|
||||
OATPP_LOGE("[FullAsyncClientTest::ClientCoroutine_postBodyAsync::handleError()]", "Error. %s", error->what())
|
||||
}
|
||||
OATPP_ASSERT(!"Error")
|
||||
return error;
|
||||
}
|
||||
|
||||
};
|
||||
@ -250,7 +248,6 @@ public:
|
||||
}
|
||||
}
|
||||
OATPP_ASSERT(!"Error")
|
||||
return error;
|
||||
}
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user