From: Roy Marples Date: Fri, 13 Nov 2015 11:27:38 +0000 (+0000) Subject: Use a GCC pragma directive to mask off the warning about not careing about the read... X-Git-Tag: v6.9.4~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8ecbe03564b1c0ea76ce556a006f10df5a51f25;p=thirdparty%2Fdhcpcd.git Use a GCC pragma directive to mask off the warning about not careing about the read result, because we don't. --- diff --git a/compat/arc4random.c b/compat/arc4random.c index 1321aedf..2634fd76 100644 --- a/compat/arc4random.c +++ b/compat/arc4random.c @@ -97,6 +97,9 @@ arc4_getword(struct arc4_stream *as) return (uint32_t)val; } +/* We don't care about any error on read, just use what we have + * on the stack. So mask off this GCC warning. */ +#pragma GCC diagnostic ignored "-Wunused-result" static void arc4_stir(struct arc4_stream *as) {