pidl/ws: Remove #pragma warning (MSVC)
authorAurelien Aptel <aaptel@suse.com>
Fri, 5 Feb 2016 14:31:16 +0000 (15:31 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 20 Jun 2016 10:08:20 +0000 (12:08 +0200)
Port Wireshark commit ceda0f9

Author: Alexis La Goutte <alexis.lagoutte@gmail.com>
Date:   Sun Oct 5 19:34:46 2014 +0200

    Remove #pragma warning (MSVC) for PIDL generate dissector

    Change-Id: I1e4c7944a2cd877f5c707703dcff44fe9f955a2c
    Reviewed-on: https://code.wireshark.org/review/4479
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
pidl/lib/Parse/Pidl/Wireshark/NDR.pm

index 632f094..547389a 100644 (file)
@@ -1110,13 +1110,6 @@ sub Parse($$$$$)
        $self->{res}->{headers} = "\n";
        $self->{res}->{headers} .= "#include \"config.h\"\n";
 
-       $self->{res}->{headers} .= "#ifdef _MSC_VER\n";
-       $self->{res}->{headers} .= "#pragma warning(disable:4005)\n";
-       $self->{res}->{headers} .= "#pragma warning(disable:4013)\n";
-       $self->{res}->{headers} .= "#pragma warning(disable:4018)\n";
-       $self->{res}->{headers} .= "#pragma warning(disable:4101)\n";
-       $self->{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";