Received: from eggs.gnu.org ([140.186.70.92]:44365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQhW6-0005mP-3h for qemu-devel@nongnu.org; Sun, 29 May 2011 11:02:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQhW4-0003Dp-T2 for qemu-devel@nongnu.org; Sun, 29 May 2011 11:02:57 -0400 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <4DDFE26E.8090803@mail.berlios.de> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Date: Sun, 29 May 2011 17:02:53 +0200 References: <1306516951-31105-1-git-send-email-cerbere@gmail.com> <1306516951-31105-4-git-send-email-cerbere@gmail.com> <4DDFE26E.8090803@mail.berlios.de> Sender: andreas.faerber@web.de Subject: Re: [Qemu-devel] [PATCH 3/6] Fix compilation warning due to incorrectly specified type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexandre Raymond , Stefan Weil Cc: qemu-trivial@nongnu.org, QEMU Developers Am 27.05.2011 um 19:42 schrieb Stefan Weil: > Am 27.05.2011 19:22, schrieb Alexandre Raymond: >> In audio/coreaudio.c, a variable named "str" was assigned "const =20 >> char" values, >> which resulted in the following warnings: >> >> -----8<----- >> audio/coreaudio.c: In function =91coreaudio_logstatus=92: >> audio/coreaudio.c:59: warning: initialization discards qualifiers =20 >> from pointer target type >> audio/coreaudio.c:63: warning: assignment discards qualifiers from =20= >> pointer target type >> (...) >> -----8<----- >> >> Signed-off-by: Alexandre Raymond >> --- >> audio/coreaudio.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/audio/coreaudio.c b/audio/coreaudio.c >> index 0a26413..3bd75cd 100644 >> --- a/audio/coreaudio.c >> +++ b/audio/coreaudio.c >> @@ -56,7 +56,7 @@ typedef struct coreaudioVoiceOut { >> >> static void coreaudio_logstatus (OSStatus status) >> { >> - char *str =3D "BUG"; >> + const char *str =3D "BUG"; >> >> switch(status) { >> case kAudioHardwareNoError: >> > > Acked-by: Stefan Weil Thanks, applied to the cocoa branch. Andreas=