Skip to content

Commit 0e23993

Browse files
committed
Fix warnings
1 parent a3b74d1 commit 0e23993

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

thirdparty/hmp3_library/hmp3_library_3.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
#pragma GCC diagnostic ignored "-Wpointer-to-int-cast"
3333
#pragma GCC diagnostic ignored "-Wint-to-pointer-cast"
3434
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
35+
#elif _MSC_VER
36+
#pragma warning (push)
37+
#pragma warning (disable : 4311)
38+
#pragma warning (disable : 4312)
3539
#endif
3640

3741
#define mdct_init hmp3_mdct_init
@@ -44,4 +48,6 @@
4448
#pragma clang diagnostic pop
4549
#elif __GNUC__
4650
#pragma GCC diagnostic pop
51+
#elif _MSC_VER
52+
#pragma warning (pop)
4753
#endif

0 commit comments

Comments
 (0)