Browse Source

fix warning as error for vorbis integer conversions (#17388)

* fix warning as error for vorbis integer conversions

Signed-off-by: Alex Peterson <[email protected]>

* fix additional warnings as errors

Signed-off-by: Alex Peterson <[email protected]>

---------

Signed-off-by: Alex Peterson <[email protected]>
Alex Peterson 1 year ago
parent
commit
06830fec9c
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Gems/MiniAudio/Code/Source/Clients/MiniAudioImplementation.cpp

+ 6 - 1
Gems/MiniAudio/Code/Source/Clients/MiniAudioImplementation.cpp

@@ -8,7 +8,12 @@
 
 #include <AzCore/PlatformDef.h>
 
-AZ_PUSH_DISABLE_WARNING(4701, "-Wuninitialized") //  warning C4701: potentially uninitialized local variable 'mid' used in vorbis
+// warning C4701: potentially uninitialized local variable 'mid' used in vorbis
+// warning C4244: '=': conversion from 'int' to 'int8', possible loss of data
+// warning C4456: declaration of 'z' hides previous local declaration
+// warning C4457: declaration of 'n' hides function parameter
+// warning C4245: '=': conversion from 'int' to 'uint32', signed /unsigned mismatch
+AZ_PUSH_DISABLE_WARNING(4701 4244 4456 4457 4245, "-Wuninitialized") 
 
 extern "C" {