summaryrefslogtreecommitdiff
path: root/gnuefi/reloc_x86_64.c
diff options
context:
space:
mode:
authorNigel Croxon <nigel.croxon@hpe.com>2016-03-03 13:40:08 -0500
committerNigel Croxon <nigel.croxon@hpe.com>2016-03-03 13:40:08 -0500
commit3dd05c7b21921cae0002ab7964fa0e52dedd7c3f (patch)
tree51be20d9c43be0c180a62bc4d91119da6d1fb83e /gnuefi/reloc_x86_64.c
parentd39106b3e415b7f4927f81650ac469bc147c227f (diff)
downloadgnu-efi-3dd05c7b21921cae0002ab7964fa0e52dedd7c3f.tar.gz
This makes "-Werror=unused-parameter" not fail.
Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Nigel Croxon <nigel.croxon@hpe.com>
Diffstat (limited to 'gnuefi/reloc_x86_64.c')
-rw-r--r--gnuefi/reloc_x86_64.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gnuefi/reloc_x86_64.c b/gnuefi/reloc_x86_64.c
index 04b4ddb..6f241bf 100644
--- a/gnuefi/reloc_x86_64.c
+++ b/gnuefi/reloc_x86_64.c
@@ -40,7 +40,9 @@
#include <elf.h>
-EFI_STATUS _relocate (long ldbase, Elf64_Dyn *dyn, EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
+EFI_STATUS _relocate (long ldbase, Elf64_Dyn *dyn,
+ EFI_HANDLE image __attribute__((__unused__)),
+ EFI_SYSTEM_TABLE *systab __attribute__((__unused__)))
{
long relsz = 0, relent = 0;
Elf64_Rel *rel = 0;
@@ -71,8 +73,8 @@ EFI_STATUS _relocate (long ldbase, Elf64_Dyn *dyn, EFI_HANDLE image, EFI_SYSTEM_
if (!rel && relent == 0)
return EFI_SUCCESS;
- if (!rel || relent == 0)
- return EFI_LOAD_ERROR;
+ if (!rel || relent == 0)
+ return EFI_LOAD_ERROR;
while (relsz > 0) {
/* apply the relocs */