From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26290 invoked by alias); 23 Feb 2007 14:21:33 -0000 Received: (qmail 26228 invoked by uid 48); 23 Feb 2007 14:21:24 -0000 Date: Fri, 23 Feb 2007 14:21:00 -0000 Message-ID: <20070223142124.26227.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/30916] Wrong ‘float’ rather than ‘double’ due to prototype warning In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "manu at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-02/txt/msg02665.txt.bz2 ------- 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