summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
index ea3f0db961..1fb9c4034f 100644
--- a/source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
@@ -919,6 +919,14 @@ sub Parse($$$$$)
$self->{res}->{headers} .= "#ifdef HAVE_CONFIG_H\n";
$self->{res}->{headers} .= "#include \"config.h\"\n";
$self->{res}->{headers} .= "#endif\n\n";
+
+ $res{headers} .= "#ifdef _MSC_VER\n";
+ $res{headers} .= "#pragma warning(disable:4005)\n";
+ $res{headers} .= "#pragma warning(disable:4013)\n";
+ $res{headers} .= "#pragma warning(disable:4018)\n";
+ $res{headers} .= "#pragma warning(disable:4101)\n";
+ $res{headers} .= "#endif\n\n";
+
$self->{res}->{headers} .= "#include <glib.h>\n";
$self->{res}->{headers} .= "#include <string.h>\n";
$self->{res}->{headers} .= "#include <epan/packet.h>\n\n";