SPEC-2513 Fixes to enable w4324 (#1197)
* Fix warning 4324 * warning that doesnt trigger anything * missed warning
This commit is contained in:
@@ -96,7 +96,12 @@
|
||||
#endif
|
||||
|
||||
/// Aligns a declaration.
|
||||
# define AZ_ALIGN(_decl, _alignment) __declspec(align(_alignment)) _decl
|
||||
# define AZ_ALIGN(_decl, _alignment) \
|
||||
AZ_PUSH_DISABLE_WARNING(4324, "-Wunknown-warning-option") \
|
||||
__declspec(align(_alignment)) \
|
||||
_decl \
|
||||
AZ_POP_DISABLE_WARNING
|
||||
|
||||
/// Return the alignment of a type. This if for internal use only (use AZStd::alignment_of<>())
|
||||
# define AZ_INTERNAL_ALIGNMENT_OF(_type) __alignof(_type)
|
||||
/// Pointer will be aliased.
|
||||
@@ -123,7 +128,12 @@
|
||||
|
||||
# define AZ_FORCE_INLINE inline
|
||||
/// Aligns a declaration.
|
||||
# define AZ_ALIGN(_decl, _alignment) _decl __attribute__((aligned(_alignment)))
|
||||
# define AZ_ALIGN(_decl, _alignment) \
|
||||
AZ_PUSH_DISABLE_WARNING(4324, "-Wunknown-warning-option") \
|
||||
_decl \
|
||||
__attribute__((aligned(_alignment)))
|
||||
AZ_POP_DISABLE_WARNING
|
||||
|
||||
/// Return the alignment of a type. This if for internal use only (use AZStd::alignment_of<>())
|
||||
# define AZ_INTERNAL_ALIGNMENT_OF(_type) __alignof__(_type)
|
||||
/// Pointer will be aliased.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user