yylex: Explicilty cast fprintf to void.
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 14 Aug 2017 12:11:43 +0000 (14:11 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 14 Aug 2017 12:11:43 +0000 (14:11 +0200)
It's needed to avoid warning on recent GCC.

grub-core/script/yylex.l

index 95b2191..7b44c37 100644 (file)
@@ -91,7 +91,7 @@ typedef size_t yy_size_t;
 #define stdin  0
 #define stdout 0
 
-#define fprintf(...) 0
+#define fprintf(...) (void)0
 #define exit(...) grub_fatal("fatal error in lexer")
 #endif