From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7920 invoked by alias); 28 Feb 2011 18:02:55 -0000 Received: (qmail 7911 invoked by uid 22791); 28 Feb 2011 18:02:55 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Feb 2011 18:02:51 +0000 Received: from mailhost3.vmware.com (mailhost3.vmware.com [10.16.27.45]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 2424A13044; Mon, 28 Feb 2011 10:02:50 -0800 (PST) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost3.vmware.com (Postfix) with ESMTP id 1861CCD988; Mon, 28 Feb 2011 10:02:50 -0800 (PST) Message-ID: <4D6BE349.60904@vmware.com> Date: Mon, 28 Feb 2011 18:03:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.24 (X11/20101201) MIME-Version: 1.0 To: Joel Brobecker CC: "gdb-patches@sourceware.org" Subject: Re: [RFA] gdb.cp/overload.cc: add cast to prevent compiler warning References: <4D6ABBFF.5030401@vmware.com> <20110228050102.GE30306@adacore.com> In-Reply-To: <20110228050102.GE30306@adacore.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00919.txt.bz2 Joel Brobecker wrote: >> 2011-02-27 Michael Snyder >> >> * gdb.cp/overload.cc: Add cast to prevent compiler warning. >> >> Index: gdb.cp/overload.cc >> =================================================================== >> RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/overload.cc,v >> retrieving revision 1.7 >> diff -u -p -u -p -r1.7 overload.cc >> --- gdb.cp/overload.cc 4 Nov 2010 20:43:25 -0000 1.7 >> +++ gdb.cp/overload.cc 27 Feb 2011 21:00:47 -0000 >> @@ -110,7 +110,7 @@ int main () >> unsigned long arg10 =10; >> float arg11 =100.0; >> double arg12 = 200.0; >> - int arg13 = 200.0; >> + int arg13 = (int) 200.0; > > Why not just write this as: > > int arg13 = 200; > I don't know -- I dunno what the author's intention was.