From 31b192ef950c18f884a0d4ac6d70be8a1bd72819 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Mon, 8 Apr 2013 15:44:11 -0300 Subject: [PATCH] Avoid doing arithmetic with void pointer Address Solaris Studio compiler warning (reported by Douglas Carmichael). CC src/sound_pulseaudio.o "src/sound_pulseaudio.c", line 53: warning: pointer to void or function used in arithmetic Signed-off-by: Claudio Matsuoka --- src/sound_pulseaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound_pulseaudio.c b/src/sound_pulseaudio.c index 8058758..5badb06 100644 --- a/src/sound_pulseaudio.c +++ b/src/sound_pulseaudio.c @@ -50,7 +50,7 @@ static void play(void *b, int i) do { if ((j = pa_simple_write(s, b, i, &error)) > 0) { i -= j; - b += j; + b = (char *)b + j; } else break; } while (i);