Wireshark-dev: Re: [Wireshark-dev] Use of variadic macros

From: Peter Wu <peter@xxxxxxxxxxxxx>
Date: Sun, 4 Oct 2015 16:41:20 +0200
On Thu, Oct 01, 2015 at 10:15:12AM -0700, Guy Harris wrote:
> 
> On Oct 1, 2015, at 9:53 AM, Alexis La Goutte <alexis.lagoutte@xxxxxxxxx> wrote:
> 
> > Yes, there is a "warning" with GCC from some month...
> > 
> > ../../epan/proto.h:2740:54: warning: anonymous variadic macros were introduced in C99 [-Wvariadic-macros]
> 
> Perhaps we need to turn on the "use C99" flag for some compilers,
> including, but not limited to, GCC-compatible compilers, to suppress
> warnings or even errors.

The feature seems supported even in c90 mode on gcc 5.2.0 and clang
3.7.0. After reading the gcc manual page, I've decided to settle with
-Wno-variadic-macros.

Patch is at https://code.wireshark.org/review/10781
-- 
Kind regards,
Peter Wu
https://lekensteyn.nl