This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/30916] Wrong ‘float’ rather than ‘double’ due to prototype warning



------- Comment #2 from manu at gcc dot gnu dot org  2007-02-23 14:21 -------
I think the warning is correct. If there were no prototype, the value would be
passed as double. Since there is a prototype, the value is passed as float.

That is what -Wconversion warns about up to GCC 4.2 (check the manual for the
description of Wconversion). Since GCC 4.3, those warnings have been moved to
Wtraditional-conversion and Wconversion has a new purpose.

More info: http://gcc.gnu.org/wiki/NewWconversion

(Please, notice that the project is not finished yet, so things may change
before GCC 4.3 is released).

Please, let us know if this answers your question, so we can close this bug
report.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30916


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]