qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/6] Fix compilation warning due to incorrectly


From: Stefan Weil
Subject: Re: [Qemu-devel] [PATCH 3/6] Fix compilation warning due to incorrectly specified type
Date: Fri, 27 May 2011 19:42:06 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110307 Iceowl/1.0b1 Icedove/3.0.11

Am 27.05.2011 19:22, schrieb Alexandre Raymond:
In audio/coreaudio.c, a variable named "str" was assigned "const char" values,
which resulted in the following warnings:

-----8<-----
audio/coreaudio.c: In function ‘coreaudio_logstatus’:
audio/coreaudio.c:59: warning: initialization discards qualifiers from pointer 
target type
audio/coreaudio.c:63: warning: assignment discards qualifiers from pointer 
target type
(...)
-----8<-----

Signed-off-by: Alexandre Raymond<address@hidden>
---
  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 = "BUG";
+    const char *str = "BUG";

      switch(status) {
      case kAudioHardwareNoError:

Acked-by: Stefan Weil <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]