ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] [Patch] pragma warning

From: Gisle Vanem <gvanem@xxxxxxxxxxxx>
Date: Tue, 27 Mar 2007 19:20:08 +0200
"Graham Bloice" <graham.bloice@xxxxxxxxxxxxx> wrote:

Gisle Vanem wrote:
The "#pragma warning()" statements are MSVC specific. So
embed them inside "#ifdef _MSC_VER".


I always thought unrecognised #pragma directives were ignored.  I take
it that MinGw barfs on them in some way?

MingW ignores them, but with a warning. I thought we should strive
to reduce the number of warnings. Hence my patch.

--gv