dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0228-Mark-some-unused-stuff-unused.patch

8631a2
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
8631a2
From: Peter Jones <pjones@redhat.com>
8631a2
Date: Mon, 27 Aug 2018 13:10:08 -0400
8631a2
Subject: [PATCH] Mark some unused stuff unused
8631a2
8631a2
Signed-off-by: Peter Jones <pjones@redhat.com>
8631a2
---
8631a2
 grub-core/commands/blscfg.c | 4 ++--
8631a2
 1 file changed, 2 insertions(+), 2 deletions(-)
8631a2
8631a2
diff --git a/grub-core/commands/blscfg.c b/grub-core/commands/blscfg.c
8631a2
index bdb1c5a95aa..abd6f00d0de 100644
8631a2
--- a/grub-core/commands/blscfg.c
8631a2
+++ b/grub-core/commands/blscfg.c
8631a2
@@ -434,7 +434,7 @@ finish:
8631a2
 
8631a2
 static grub_envblk_t saved_env = NULL;
8631a2
 
8631a2
-static int
8631a2
+static int UNUSED
8631a2
 save_var (const char *name, const char *value, void *whitelist UNUSED)
8631a2
 {
8631a2
   const char *val = grub_env_get (name);
8631a2
@@ -446,7 +446,7 @@ save_var (const char *name, const char *value, void *whitelist UNUSED)
8631a2
   return 0;
8631a2
 }
8631a2
 
8631a2
-static int
8631a2
+static int UNUSED
8631a2
 unset_var (const char *name, const char *value UNUSED, void *whitelist)
8631a2
 {
8631a2
   grub_dprintf("blscfg", "restoring \"%s\"\n", name);