nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0028-grub-core-script-yylex.l-Ignore-unused-function-and-.patch

f96e0b
From b7ae222dae310111f17da6e1fc072237977ac417 Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Wed, 5 Sep 2012 08:51:31 +0200
f96e0b
Subject: [PATCH 028/482] 	* grub-core/script/yylex.l: Ignore
f96e0b
 unused-function and sign-compare 	warnings.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                | 5 +++++
f96e0b
 grub-core/script/yylex.l | 2 ++
f96e0b
 2 files changed, 7 insertions(+)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 70f0c86..66a0245 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,5 +1,10 @@
f96e0b
 2012-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
+	* grub-core/script/yylex.l: Ignore unused-function and sign-compare
f96e0b
+	warnings.
f96e0b
+
f96e0b
+2012-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
 	* grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
f96e0b
 
f96e0b
 2012-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
diff --git a/grub-core/script/yylex.l b/grub-core/script/yylex.l
f96e0b
index f6a39c5..8fdcfef 100644
f96e0b
--- a/grub-core/script/yylex.l
f96e0b
+++ b/grub-core/script/yylex.l
f96e0b
@@ -29,6 +29,8 @@
f96e0b
 #pragma GCC diagnostic ignored "-Wmissing-prototypes"
f96e0b
 #pragma GCC diagnostic ignored "-Wmissing-declarations"
f96e0b
 #pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations"
f96e0b
+#pragma GCC diagnostic ignored "-Wunused-function"
f96e0b
+#pragma GCC diagnostic ignored "-Wsign-compare"
f96e0b
 
f96e0b
 #define yyfree    grub_lexer_yyfree
f96e0b
 #define yyalloc   grub_lexer_yyalloc
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b