Fix deprecation compile warning in NetworkConfig on Clang

This commit is contained in:
Wojtek Figat
2023-03-03 17:15:31 +01:00
parent 60f21d1a92
commit d5df227df5

View File

@@ -82,11 +82,14 @@ API_STRUCT(Namespace="FlaxEngine.Networking") struct FLAXENGINE_API NetworkConfi
API_FIELD()
uint16 MessagePoolSize = 2048;
// Ignore deprecation warnings in defaults
PRAGMA_DISABLE_DEPRECATION_WARNINGS
/// <summary>Ctor.</summary>
NetworkConfig()
{
NetworkDriverType = NetworkDriverType::ENet;
}
NetworkConfig(const NetworkConfig& other) = default;
NetworkConfig(NetworkConfig&& other) = default;
NetworkConfig& operator=(const NetworkConfig& other) = default;
PRAGMA_ENABLE_DEPRECATION_WARNINGS
};