From: Jan Kiszka <jan.kiszka@web.de>
To: Niels de Vos <nixpanic@users.sourceforge.net>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] Fix compiler warning on parsing the -usbdevice parameter
Date: Mon, 08 Mar 2010 08:58:30 +0100 [thread overview]
Message-ID: <4B94AE26.9090504@web.de> (raw)
In-Reply-To: <1b51b6f81003071242x4d6ecbdas7fa072256718cbe5@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1107 bytes --]
Niels de Vos wrote:
> Ah, just noticed this warning is only in Jans git... For those who
> were wondering :)
Yes, and I forgot to push my fixup. Thanks nevertheless.
Jan
>
> Cheers,
> Niels
>
> On 3/7/10, Niels de Vos <nixpanic@users.sourceforge.net> wrote:
>> With the added checks on the parameter for -usbdevice, the following
>> warning got introduced:
>>
>> hw/usb-bus.c: In function ‘usbdevice_create’:
>> hw/usb-bus.c:278: error: assignment discards qualifiers from pointer target
>> type
>>
>> It is okay to drop the qualifier (const) from the empty string here.
>>
>> Signed-off-by: Niels de Vos <nixpanic@users.sourceforge.net>
>>
>> diff --git a/hw/usb-bus.c b/hw/usb-bus.c
>> index 89e2ea6..d058e14 100644
>> --- a/hw/usb-bus.c
>> +++ b/hw/usb-bus.c
>> @@ -275,7 +275,7 @@ USBDevice *usbdevice_create(const char *cmdline)
>> len = sizeof(driver);
>> pstrcpy(driver, len, cmdline);
>> } else {
>> - params = "";
>> + params = (char*) "";
>> pstrcpy(driver, sizeof(driver), cmdline);
>> }
>>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
prev parent reply other threads:[~2010-03-08 8:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-07 20:27 [Qemu-devel] [PATCH] Fix compiler warning on parsing the -usbdevice parameter Niels de Vos
2010-03-07 20:42 ` [Qemu-devel] " Niels de Vos
2010-03-08 7:58 ` Jan Kiszka [this message]
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=4B94AE26.9090504@web.de \
--to=jan.kiszka@web.de \
--cc=nixpanic@users.sourceforge.net \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).