2005-11-27 Marco Gerards <mgerards@xs4all.nl>
* include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__ ((unused))' to silence gcc warning.
This commit is contained in:
parent
1569ec5199
commit
95dc3643d6
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-11-27 Marco Gerards <mgerards@xs4all.nl>
|
||||
|
||||
* include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
|
||||
((unused))' to silence gcc warning.
|
||||
|
||||
2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
|
||||
|
||||
* configure.ac: Correct `AC_PROG_YACC' test.
|
||||
|
|
|
@ -26,12 +26,12 @@
|
|||
#include <grub/types.h>
|
||||
|
||||
#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)); \
|
||||
|
|
Loading…
Reference in a new issue