Skip to content

Commit 780989f

Browse files
committed
miniz: silence Visual Studio's conversion warnings
This is imported code, we might not actually want to change/fix it.
1 parent d25ecb1 commit 780989f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

jbmc/src/miniz/miniz.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,21 @@
2828
// clang-format off
2929

3030
#ifdef _MSC_VER
31+
// conversion warnings
32+
#pragma warning(disable:4242)
33+
// possible loss of data
34+
#pragma warning(disable:4244)
35+
// possible loss of data
36+
#pragma warning(disable:4365)
37+
// signed/unsigned mismatch
3138
#pragma warning(disable:4548)
32-
// expression before comma has no effect
39+
// expression before comma has no effect
3340
#pragma warning(disable:4061)
34-
// enum case is not handled in switch
41+
// enum case is not handled in switch
42+
#pragma warning(disable:4334)
43+
// result of 32-bit shift implicitly converted to 64 bits
44+
#pragma warning(disable:5039)
45+
// pointer or reference to potentially throwing function passed to extern C
3546
#endif
3647

3748
#include "miniz.h"

0 commit comments

Comments
 (0)