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:
marco_g 2005-11-27 12:21:12 +00:00
parent 1569ec5199
commit 95dc3643d6
2 changed files with 7 additions and 2 deletions

View file

@ -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.

View file

@ -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)); \