* grub-core/Makefile.core.def (normal): Remove -Wno-error.
* grub-core/script/lexer.c: Declare yytext_ptr to avoid having
yylex_strncpy.
* grub-core/script/yylex.l: Add fine-grained #pragma.
+2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
+
+ Fine grainely disable warnings on lexer. Remove Wno-error on it.
+
+ * grub-core/Makefile.core.def (normal): Remove -Wno-error.
+ * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
+ yylex_strncpy.
+ * grub-core/script/yylex.l: Add fine-grained #pragma.
+
2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
extra_dist = script/yylex.l;
extra_dist = script/parser.y;
- cflags = '$(CFLAGS_POSIX) -Wno-error';
+ cflags = '$(CFLAGS_POSIX)';
cppflags = '$(CPPFLAGS_POSIX)';
};
#include <grub/mm.h>
#include <grub/script_sh.h>
+#define yytext_ptr char *
#include "grub_script.tab.h"
#include "grub_script.yy.h"
#include <grub/script_sh.h>
#include "grub_script.tab.h"
+#pragma GCC diagnostic ignored "-Wunused-parameter"
+#pragma GCC diagnostic ignored "-Wmissing-prototypes"
+
#define yyfree grub_lexer_yyfree
#define yyalloc grub_lexer_yyalloc
#define yyrealloc grub_lexer_yyrealloc