diff options
author | Alexandre Raymond <cerbere@gmail.com> | 2011-05-27 13:22:28 -0400 |
---|---|---|
committer | Andreas Färber <andreas.faerber@web.de> | 2011-06-14 03:08:56 +0200 |
commit | cf5bf42705adfc3a52cd7a6bab07a2d573d06e72 (patch) | |
tree | 7350bcc89418e16a754e7fbee353832c0e319eb9 /audio | |
parent | 66e93db196105c606ce0745e6896954409bf2363 (diff) | |
download | qemu-cf5bf42705adfc3a52cd7a6bab07a2d573d06e72.tar.gz qemu-cf5bf42705adfc3a52cd7a6bab07a2d573d06e72.tar.bz2 qemu-cf5bf42705adfc3a52cd7a6bab07a2d573d06e72.zip |
Fix compilation warning due to incorrectly specified type
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 <cerbere@gmail.com>
Acked-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/coreaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/coreaudio.c b/audio/coreaudio.c index 0a26413d75..3bd75cdda4 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: |