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

Bug#231748: libc6-dev: programs using HUGE_VAL will issue a warning when compiled with -pedantic on the g++-3.3



reassign 231748 gcc
thanks

At Sun, 08 Feb 2004 19:13:12 +0100,
Thomas Richter wrote:
> A program using HUGE_VAL will compile with a warning when compiled with 
> g++-3.3 -pedantic (g++-3.3 (GCC) 3.3.2 (Debian)).
> 
> How to reproduce:
> 
> Save the following program as "test.cpp".
> 
> /* snip */
> 
> #include <math.h>
> 
> int main(int argc,char **argv)
> {
>    double x = HUGE_VAL;
> 
>    return 0;
> }
> 
> /* snip */
> 
> compile it as follows:
> 
> $ g++-3.3 -pedantic test.cpp
> 
> g++ will issue the following warning:
> 
> test.cpp:5:14: Warnung: use of C99 hexadecimal floating constant

At Sat, 05 Feb 2005 17:34:40 +0100,
Petter Reinholdtsen wrote:
> I ran into the same problem when trying to compile mapserver with
> -pedantic using gcc 3.3.5.  Not sure how to solve the problem, but
> this bug make it hard to convince the mapserver developers to use
> -pendantic.  I want to convince them to add more warnings flags in a
> try to get the code ready for all the archs in Debian, and it gets
> harder when bogus warnings are emited from the compiler. :/

This issue has been discussed with:

	http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16977
	http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11931
	http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7263

I reassign it to gcc.  Gcc maintainers, if your discussion will be
finally decided, and glibc should be fixed, please let me know.

Regards,
-- gotom




Reply to: