[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#201658: gcc-3.3: unjustified warning for C89 code using HUGE_VAL



Package: gcc-3.3
Version: 1:3.3.1-0pre0
Severity: minor

Consider the following .c file:

    #include <math.h>
    double x = HUGE_VAL;

gcc -ansi -pedantic -Wall gives the warning "use of C99 hexadecimal
floating constant".  There is nothing remotely suspicious about the
code that would deserve a warning; it is entirely C89 conformant.
Presumably math.h (or something included by it) needs a tweak in its #if
directives.

There might be other symbolic constants with the same problem; I haven't
searched for them.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux arwen 2.4.19 #2 SMP Fri Nov 22 02:47:50 GMT 2002 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages gcc-3.3 depends on:
ii  binutils                 2.14.90.0.4-0.1 The GNU assembler, linker and bina
ii  cpp-3.3                  1:3.3.1-0pre0   The GNU C preprocessor
ii  gcc-3.3-base             1:3.3.1-0pre0   The GNU Compiler Collection (base 
ii  libc6                    2.3.1-16        GNU C Library: Shared libraries an
ii  libgcc1                  1:3.3.1-0pre0   GCC support library

-- no debconf information




Reply to: