Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Backport |
| 2 | |
| 3 | This fixes compilation issues when using flex-2.5.37. It was taken from upstream. |
| 4 | |
| 5 | Original author is: Vladimir Serbinenko <phcoder@gmail.com> |
| 6 | |
| 7 | Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> |
| 8 | |
| 9 | Index: grub-2.00/grub-core/script/yylex.l |
| 10 | =================================================================== |
| 11 | --- grub-2.00.orig/grub-core/script/yylex.l 2012-06-08 23:24:15.000000000 +0300 |
| 12 | +++ grub-2.00/grub-core/script/yylex.l 2013-07-31 14:34:40.708100982 +0300 |
| 13 | @@ -29,6 +29,8 @@ |
| 14 | #pragma GCC diagnostic ignored "-Wmissing-prototypes" |
| 15 | #pragma GCC diagnostic ignored "-Wmissing-declarations" |
| 16 | #pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations" |
| 17 | +#pragma GCC diagnostic ignored "-Wunused-function" |
| 18 | +#pragma GCC diagnostic ignored "-Wsign-compare" |
| 19 | |
| 20 | #define yyfree grub_lexer_yyfree |
| 21 | #define yyalloc grub_lexer_yyalloc |