From: Andre Noll Date: Sun, 15 Jul 2018 09:16:18 +0000 (+0200) Subject: ao_write: Silence sparse warning. X-Git-Tag: v0.6.3~85 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=2dd031d57ce69a32ccf613b947d8cfd035663d4a;p=paraslash.git ao_write: Silence sparse warning. ao_write.c:336:58: warning: incorrect type in argument 3 (different modifiers) ao_write.c:336:58: expected void *( *__start_routine )( ... ) ao_write.c:336:58: got void [noreturn] *( * )( ... ) gcc versions 5, 6 and 7 all seem to be happy without the __noreturn as well, so let's lose it. --- diff --git a/ao_write.c b/ao_write.c index 4258803f..e2858b91 100644 --- a/ao_write.c +++ b/ao_write.c @@ -244,7 +244,7 @@ fail: return ret; } -__noreturn static void *aow_play(void *priv) +static void *aow_play(void *priv) { struct writer_node *wn = priv; struct private_aow_data *pawd = wn->private_data;