From 4d966d877f63e1a9b78479b17356826bc22f9c91 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 25 Dec 2023 21:06:39 +0100 Subject: [PATCH] Fixed warning. --- .../input_network_encoder.cpp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/network_synchronizer/input_network_encoder.cpp b/modules/network_synchronizer/input_network_encoder.cpp index 8f3a2ed9a..1ce174c09 100644 --- a/modules/network_synchronizer/input_network_encoder.cpp +++ b/modules/network_synchronizer/input_network_encoder.cpp @@ -138,34 +138,34 @@ void InputNetworkEncoder::encode(const LocalVector &p_input, DataBuffer CRASH_NOW_MSG("Boolean are handled differently. Thanks to the above IF this condition never occurs."); break; case DataBuffer::DATA_TYPE_UINT: - r_buffer.add_uint(pending_input.operator unsigned int(), info.compression_level); + (void)r_buffer.add_uint(pending_input.operator unsigned int(), info.compression_level); break; case DataBuffer::DATA_TYPE_INT: - r_buffer.add_int(pending_input.operator int(), info.compression_level); + (void)r_buffer.add_int(pending_input.operator int(), info.compression_level); break; case DataBuffer::DATA_TYPE_REAL: - r_buffer.add_real(pending_input.operator real_t(), info.compression_level); + (void)r_buffer.add_real(pending_input.operator real_t(), info.compression_level); break; case DataBuffer::DATA_TYPE_POSITIVE_UNIT_REAL: - r_buffer.add_positive_unit_real(pending_input.operator real_t(), info.compression_level); + (void)r_buffer.add_positive_unit_real(pending_input.operator real_t(), info.compression_level); break; case DataBuffer::DATA_TYPE_UNIT_REAL: - r_buffer.add_unit_real(pending_input.operator real_t(), info.compression_level); + (void)r_buffer.add_unit_real(pending_input.operator real_t(), info.compression_level); break; case DataBuffer::DATA_TYPE_VECTOR2: - r_buffer.add_vector2(pending_input.operator Vector2(), info.compression_level); + (void)r_buffer.add_vector2(pending_input.operator Vector2(), info.compression_level); break; case DataBuffer::DATA_TYPE_NORMALIZED_VECTOR2: - r_buffer.add_normalized_vector2(pending_input.operator Vector2(), info.compression_level); + (void)r_buffer.add_normalized_vector2(pending_input.operator Vector2(), info.compression_level); break; case DataBuffer::DATA_TYPE_VECTOR3: - r_buffer.add_vector3(pending_input.operator Vector3(), info.compression_level); + (void)r_buffer.add_vector3(pending_input.operator Vector3(), info.compression_level); break; case DataBuffer::DATA_TYPE_NORMALIZED_VECTOR3: - r_buffer.add_normalized_vector3(pending_input.operator Vector3(), info.compression_level); + (void)r_buffer.add_normalized_vector3(pending_input.operator Vector3(), info.compression_level); break; case DataBuffer::DATA_TYPE_VARIANT: - r_buffer.add_variant(pending_input); + (void)r_buffer.add_variant(pending_input); break; }; }