Skip to content

Commit 6d38cb2

Browse files
authored
Merge pull request #3910 from tautschnig/vs-miniz
miniz: silence Visual Studio's conversion warnings [blocks: #2310]
2 parents 2cdd3ee + b9cf712 commit 6d38cb2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

jbmc/src/miniz/miniz.cpp

+13-2
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)