Ethereal-dev: Re: [Ethereal-dev] More interesting warnings

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Mon, 29 Dec 2003 23:11:15 +0100
On Mon, Dec 29, 2003 at 02:03:56PM -0800, Guy Harris wrote:
> On Mon, Dec 29, 2003 at 10:56:40PM +0100, Joerg Mayer wrote:
> > Might this cause problems on older compilers?
> > ftype-double.c:69:48: warning: use of C99 hexadecimal floating constant
> 
> On what OS is this being done?  And with what compiler flags?  Does this
> include "-pedantic"?

gcc (GCC) 3.3.1 (SuSE Linux)
CFLAGS="-O3 -mcpu=i686 -pipe" ./configure --with-extra-gcc-checks

> I assume it's complaining about HUGE_VAL, but I'd also expect that to
> come from header files that *should* be compatible with the compiler. 
> However, the headers might be headers for GCC and be headers that are
> assuming GCC, and if you're compiling with "-pedantic" it might be
> warning that the value of HUGE_VAL assumes a feature not in C89, even
> though it's in the version of GCC for which the header is intended.

Looks like you are right, I will ignore this error from now on.

 Ciao
    Jörg

-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.