From 550da9f7efc2f2abd8d7ed2f7a9e95a1c6ce4881 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 28 May 2016 15:52:44 +0100 Subject: [PATCH] Testcase warning suppression for vc++ --- Examples/test-suite/constant_directive.i | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Examples/test-suite/constant_directive.i b/Examples/test-suite/constant_directive.i index fc6b6cd92..89f13cecc 100644 --- a/Examples/test-suite/constant_directive.i +++ b/Examples/test-suite/constant_directive.i @@ -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;