From: Michael Snyder <msnyder@vmware.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [RFA] gdb.cp/overload.cc: add cast to prevent compiler warning
Date: Mon, 28 Feb 2011 18:03:00 -0000 [thread overview]
Message-ID: <4D6BE349.60904@vmware.com> (raw)
In-Reply-To: <20110228050102.GE30306@adacore.com>
Joel Brobecker wrote:
>> 2011-02-27 Michael Snyder <msnyder@vmware.com>
>>
>> * 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.
next prev parent reply other threads:[~2011-02-28 18:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-27 21:16 Michael Snyder
2011-02-28 5:08 ` Joel Brobecker
2011-02-28 18:03 ` Michael Snyder [this message]
2011-02-28 18:17 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D6BE349.60904@vmware.com \
--to=msnyder@vmware.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox