SPEC-2513 Fixes to enable w4324 (#1197)

* Fix warning 4324

* warning that doesnt trigger anything

* missed warning
This commit is contained in:
Esteban Papp
2021-06-09 11:33:13 -07:00
committed by GitHub
parent 5bdf9e3c6d
commit 68ffdd6714
9 changed files with 31 additions and 18 deletions
@@ -180,10 +180,7 @@ namespace AzNetworking
//! Takes a quantized integral value and stores the floating point representation.
void DecodeQuantizedValues();
# if defined AZ_COMPILER_MSVC
# pragma warning(push)
# pragma warning(disable:4201) // anonymous union
# endif
AZ_PUSH_DISABLE_WARNING(4201 4324, "-Wunknown-warning-option") // anonymous union, structure was padded due to alignment
union
{
float m_quantizedValues[NUM_ELEMENTS];
@@ -195,9 +192,7 @@ namespace AzNetworking
uint32_t m_serializeValues[NUM_ELEMENTS];
SimdTypei m_serializeVector;
};
# if defined AZ_COMPILER_MSVC
# pragma warning(pop)
# endif
AZ_POP_DISABLE_WARNING
template <AZStd::size_t NUM_ELEMENTS2, AZStd::size_t NUM_BYTES2, int32_t MIN_VALUE2, int32_t MAX_VALUE2>
friend struct QuantizedValuesConversionHelper;