]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Use a GCC pragma directive to mask off the warning about not careing about the read...
authorRoy Marples <roy@marples.name>
Fri, 13 Nov 2015 11:27:38 +0000 (11:27 +0000)
committerRoy Marples <roy@marples.name>
Fri, 13 Nov 2015 11:27:38 +0000 (11:27 +0000)
compat/arc4random.c

index 1321aedfd24fff27db36ec89df562bbe009cc2a0..2634fd76c98aee20c43d0701d5b0e368e62fa2d5 100644 (file)
@@ -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)
 {