Thread View: gnu.g++.lib.bug
1 messages
1 total messages
Started by ]ke Sandgren
Mon, 16 Nov 1992 12:45
Problem with Integer.h and math-68881.h
Author: ]ke Sandgren
Date: Mon, 16 Nov 1992 12:45
Date: Mon, 16 Nov 1992 12:45
37 lines
2115 bytes
2115 bytes
Configuration: gcc 2.3.1 configured with sun3-sunos4 libg++ 2.2 configured with sun3-sunos4 I get the following warnings when compiling Integer.cc Rational.cc and Fix.cc during build of libg++. gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c Integer.cc ./math-68881.h: In function `double hypot (double, double)': In file included from ./../g++-include/math.h:36, from Integer.cc:34: ./math-68881.h:291: warning: float or double assigned to integer data type gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c Rational.cc ./math-68881.h: In function `double hypot (double, double)': In file included from ./../g++-include/math.h:36, from ./Rational.h:27, from Rat ional.cc:21: ./math-68881.h:291: warning: float or double assigned to integer data type gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c Fix.cc ./math-68881.h: In function `double hypot (double, double)': In file included from ./../g++-include/math.h:36, from ./builtin.h:33, from ./Fi x.h:15, from Fix.cc:25: ./math-68881.h:291: warning: float or double assigned to integer data type (Both Rational.cc and Fix.cc include Integer.h one way or the other and always before math-68881.h.) This seems to be because of the declaration of sqrt in Integer.h and the inline function hypot in math-68881.h. Complex.h which also declares sqrt and includes math-68881.h does NOT give the same warning. Is there something wrong here or should i really get these warnings?? /]ke Sandgren -- Ake Sandgren, Inst. of Info. Proc, Umea University, S-90187 Umea, Sweden Internet: ake@cs.umu.se Phone: +46 90 166134 Fax: +46 90 166126
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads