summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-02-22 17:25:24 -0500
committerPeter Jones <pjones@redhat.com>2021-02-25 10:15:14 -0500
commit587b608b89def24717632fd5b3e548f2cf52c675 (patch)
treec4551e2ed2b24646ea7c95f91e1a65daf7fecf0f /lib
parentc1722924cee57e1eb27cad656baf079bf809b8f6 (diff)
downloadefi-boot-shim-587b608b89def24717632fd5b3e548f2cf52c675.tar.gz
efi-boot-shim-587b608b89def24717632fd5b3e548f2cf52c675.zip
Fix all the places we need UNUSED on arguments.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/print_crypto.c2
-rw-r--r--lib/simple_file.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/print_crypto.c b/lib/print_crypto.c
index 1bab0a6c..39dfd2c0 100644
--- a/lib/print_crypto.c
+++ b/lib/print_crypto.c
@@ -15,7 +15,7 @@
#include <console.h>
static int
-print_errors_cb(const char *str, size_t len, void *u)
+print_errors_cb(const char *str, size_t len, void *u UNUSED)
{
console_print(L"%a", str);
diff --git a/lib/simple_file.c b/lib/simple_file.c
index 384b20ec..e6544709 100644
--- a/lib/simple_file.c
+++ b/lib/simple_file.c
@@ -66,8 +66,8 @@ simple_file_open(EFI_HANDLE image, CHAR16 *name, EFI_FILE **file, UINT64 mode)
}
EFI_STATUS
-simple_dir_read_all_by_handle(EFI_HANDLE image, EFI_FILE *file, CHAR16* name, EFI_FILE_INFO **entries,
- int *count)
+simple_dir_read_all_by_handle(EFI_HANDLE image UNUSED, EFI_FILE *file,
+ CHAR16* name, EFI_FILE_INFO **entries, int *count)
{
EFI_STATUS efi_status;
char buf[4096];