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:
Ferry Huberts 2023-09-02 21:28:33 +02:00
parent a93fa88897
commit 9a2854be58

View File

@ -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;
}
};