Article View: gnu.g++.lib.bug
Article #349Problem with Integer.h and math-68881.h
From: ]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
Technical Details
Message-ID:
<9211161145.AA25343@ume.cs.umu.se>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.umu.SE!akeShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.umu.SE!ake From: ake@cs.umu.SE (]ke Sandgren) Subject: Problem with Integer.h and math-68881.h Message-ID: <9211161145.AA25343@ume.cs.umu.se> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Mon, 16 Nov 1992 12:45:04 GMT Approved: bug-lib-g++@prep.ai.mit.edu Lines: 38