Testcase warning suppression for vc++
This commit is contained in:
parent
bee6964b48
commit
550da9f7ef
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,9 @@
|
|||
// %constant and struct
|
||||
|
||||
%inline %{
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(disable : 4190) // warning C4190: 'result' has C-linkage specified, but returns UDT 'Type1' which is incompatible with C
|
||||
#endif
|
||||
struct Type1 {
|
||||
Type1(int val = 0) : val(val) {}
|
||||
int val;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue