From 95dc3643d671c5fff70e4cf2ff14b7f64864b250 Mon Sep 17 00:00:00 2001 From: marco_g Date: Sun, 27 Nov 2005 12:21:12 +0000 Subject: [PATCH] 2005-11-27 Marco Gerards * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__ ((unused))' to silence gcc warning. --- ChangeLog | 5 +++++ include/grub/dl.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f788e0ae7..2af205e33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-27 Marco Gerards + + * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__ + ((unused))' to silence gcc warning. + 2005-11-26 Hollis Blanchard * configure.ac: Correct `AC_PROG_YACC' test. diff --git a/include/grub/dl.h b/include/grub/dl.h index e2b7cbc60..d14707474 100644 --- a/include/grub/dl.h +++ b/include/grub/dl.h @@ -26,12 +26,12 @@ #include #define GRUB_MOD_INIT(name) \ -static void grub_mod_init (grub_dl_t mod) __attribute__ ((used)); \ +static void grub_mod_init (grub_dl_t mod __attribute__ ((unused))) __attribute__ ((used)); \ void grub_##name##_init (void); \ void \ grub_##name##_init (void) { grub_mod_init (0); } \ static void \ -grub_mod_init (grub_dl_t mod) +grub_mod_init (grub_dl_t mod __attribute__ ((unused))) #define GRUB_MOD_FINI(name) \ static void grub_mod_fini (void) __attribute__ ((used)); \