From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWIKa-00085i-Hr for qemu-devel@nongnu.org; Mon, 13 Jun 2011 21:22:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWIKY-0003ev-4F for qemu-devel@nongnu.org; Mon, 13 Jun 2011 21:22:12 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:59334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWIKX-0003ed-UV for qemu-devel@nongnu.org; Mon, 13 Jun 2011 21:22:10 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 14 Jun 2011 03:21:59 +0200 Message-Id: <1308014527-60251-3-git-send-email-andreas.faerber@web.de> In-Reply-To: <1308014527-60251-2-git-send-email-andreas.faerber@web.de> References: <1308014527-60251-1-git-send-email-andreas.faerber@web.de> <1308014527-60251-2-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: andreas.faerber@web.de Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 02/10] Fix compilation warning due to incorrectly specified type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexandre Raymond , =?UTF-8?q?Andreas=20F=C3=A4rber?= From: Alexandre Raymond In audio/coreaudio.c, a variable named "str" was assigned "const char" va= lues, which resulted in the following warnings: -----8<----- audio/coreaudio.c: In function =E2=80=98coreaudio_logstatus=E2=80=99: audio/coreaudio.c:59: warning: initialization discards qualifiers from po= inter target type audio/coreaudio.c:63: warning: assignment discards qualifiers from pointe= r target type (...) -----8<----- Signed-off-by: Alexandre Raymond Acked-by: Stefan Weil Signed-off-by: Andreas F=C3=A4rber --- 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 { =20 static void coreaudio_logstatus (OSStatus status) { - char *str =3D "BUG"; + const char *str =3D "BUG"; =20 switch(status) { case kAudioHardwareNoError: --=20 1.7.5.3