Skip to content

Commit 2f85e00

Browse files
authored
Shut up lots of new warnings issued by MSC compiler after some update. (#8770)
Ecxample warning: warning C5287: operands are different enum types 'GMT_enum_std' and 'GMT_enum_method'; use an explicit cast to silence this warning
1 parent 3501107 commit 2f85e00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/gmt.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
extern "C" {
3838
#endif
3939

40+
/* Disable warning: operands are different enum types */
41+
#ifdef _MSC_VER
42+
#pragma warning( disable : 5287 )
43+
#endif
44+
4045
/*
4146
* We only include the basic include files needed by the API. Users may
4247
* need to include additional files, such as <math.h>, etc. In order to

0 commit comments

Comments
 (0)