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.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-10-23 23:32:06 +02:00
parent 4defb8d59b
commit 124df5f6ca
4 changed files with 14 additions and 1 deletions

View file

@ -24,6 +24,7 @@
#include <grub/mm.h>
#include <grub/script_sh.h>
#define yytext_ptr char *
#include "grub_script.tab.h"
#include "grub_script.yy.h"

View file

@ -24,6 +24,9 @@
#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