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:
parent
4defb8d59b
commit
124df5f6ca
4 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
|||
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]:
|
||||
|
|
|
@ -1395,7 +1395,7 @@ module = {
|
|||
extra_dist = script/yylex.l;
|
||||
extra_dist = script/parser.y;
|
||||
|
||||
cflags = '$(CFLAGS_POSIX) -Wno-error';
|
||||
cflags = '$(CFLAGS_POSIX)';
|
||||
cppflags = '$(CPPFLAGS_POSIX)';
|
||||
};
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue