2016-03-07 19:10:17 +00:00
|
|
|
From b1dad9a073229e27ca370a45fd3e950fe08bb042 Mon Sep 17 00:00:00 2001
|
2015-07-22 13:44:51 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
2016-03-07 19:10:17 +00:00
|
|
|
Date: Mon, 7 Mar 2016 13:15:22 -0500
|
|
|
|
Subject: [PATCH 07/91] Add some __unused__ where gcc 5.x is more picky about
|
2015-07-22 13:44:51 +00:00
|
|
|
it.
|
|
|
|
|
|
|
|
With some build flags, gcc 5.x throws more warnings about __unused__ not
|
|
|
|
being present than older compilers did. This patch adds the annotation.
|
|
|
|
|
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
|
---
|
|
|
|
grub-core/gettext/gettext.c | 10 +++++-----
|
2016-03-07 19:10:17 +00:00
|
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
2015-07-22 13:44:51 +00:00
|
|
|
|
|
|
|
diff --git a/grub-core/gettext/gettext.c b/grub-core/gettext/gettext.c
|
2016-03-04 19:24:31 +00:00
|
|
|
index 4880cef..1b1986f 100644
|
2015-07-22 13:44:51 +00:00
|
|
|
--- a/grub-core/gettext/gettext.c
|
|
|
|
+++ b/grub-core/gettext/gettext.c
|
|
|
|
@@ -434,7 +434,7 @@ static char *
|
|
|
|
grub_gettext_env_write_lang (struct grub_env_var *var
|
|
|
|
__attribute__ ((unused)), const char *val)
|
|
|
|
{
|
|
|
|
- grub_err_t err;
|
|
|
|
+ grub_err_t __attribute__((__unused__)) err;
|
|
|
|
err = grub_gettext_init_ext (&main_context, val, grub_env_get ("locale_dir"),
|
|
|
|
grub_env_get ("prefix"));
|
2016-03-04 19:24:31 +00:00
|
|
|
if (err)
|
|
|
|
@@ -451,7 +451,7 @@ grub_gettext_env_write_lang (struct grub_env_var *var
|
2015-07-22 13:44:51 +00:00
|
|
|
void
|
|
|
|
grub_gettext_reread_prefix (const char *val)
|
|
|
|
{
|
|
|
|
- grub_err_t err;
|
|
|
|
+ grub_err_t __attribute__((__unused__)) err;
|
|
|
|
err = grub_gettext_init_ext (&main_context, grub_env_get ("lang"),
|
|
|
|
grub_env_get ("locale_dir"),
|
|
|
|
val);
|
2016-03-04 19:24:31 +00:00
|
|
|
@@ -463,7 +463,7 @@ static char *
|
2015-07-22 13:44:51 +00:00
|
|
|
read_main (struct grub_env_var *var
|
|
|
|
__attribute__ ((unused)), const char *val)
|
|
|
|
{
|
|
|
|
- grub_err_t err;
|
|
|
|
+ grub_err_t __attribute__((__unused__)) err;
|
|
|
|
err = grub_gettext_init_ext (&main_context, grub_env_get ("lang"), val,
|
|
|
|
grub_env_get ("prefix"));
|
2016-03-04 19:24:31 +00:00
|
|
|
if (err)
|
|
|
|
@@ -475,7 +475,7 @@ static char *
|
2015-07-22 13:44:51 +00:00
|
|
|
read_secondary (struct grub_env_var *var
|
|
|
|
__attribute__ ((unused)), const char *val)
|
|
|
|
{
|
|
|
|
- grub_err_t err;
|
|
|
|
+ grub_err_t __attribute__((__unused__)) err;
|
|
|
|
err = grub_gettext_init_ext (&secondary_context, grub_env_get ("lang"), val,
|
|
|
|
0);
|
2016-03-04 19:24:31 +00:00
|
|
|
if (err)
|
|
|
|
@@ -500,7 +500,7 @@ grub_cmd_translate (grub_command_t cmd __attribute__ ((unused)),
|
2015-07-22 13:44:51 +00:00
|
|
|
GRUB_MOD_INIT (gettext)
|
|
|
|
{
|
|
|
|
const char *lang;
|
|
|
|
- grub_err_t err;
|
|
|
|
+ grub_err_t __attribute__((__unused__)) err;
|
|
|
|
|
|
|
|
lang = grub_env_get ("lang");
|
|
|
|
|
|
|
|
--
|
2016-03-04 18:32:29 +00:00
|
|
|
2.5.0
|
2015-07-22 13:44:51 +00:00
|
|
|
|