Fixed clang compilation and added support for making assertions and erros throw exceptions for easier testing.
This commit is contained in:
@@ -6,6 +6,11 @@
|
||||
#include "../internal/common.hpp"
|
||||
#include "../util/variant.hpp"
|
||||
|
||||
#if MIJIN_COMPILER == MIJIN_COMPILER_CLANG
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||
#endif // MIJIN_COMPILER == MIJIN_COMPILER_CLANG
|
||||
|
||||
namespace mijin
|
||||
{
|
||||
namespace
|
||||
@@ -472,3 +477,7 @@ Task<StreamResult<std::unique_ptr<Socket>>> TCPServerSocket::c_waitForConnection
|
||||
co_return StreamError::CONNECTION_CLOSED;
|
||||
}
|
||||
}
|
||||
|
||||
#if MIJIN_COMPILER == MIJIN_COMPILER_CLANG
|
||||
#pragma clang diagnostic pop
|
||||
#endif // MIJIN_COMPILER == MIJIN_COMPILER_CLANG
|
||||
|
||||
Reference in New Issue
Block a user