2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
* include/grub/types.h (__unused): Rename to UNUSED. * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused. (grub_elf64_size): Likewise.
This commit is contained in:
parent
8b6a8d2ae2
commit
03e58196a8
3 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
|
||||
|
||||
* include/grub/types.h (__unused): Rename to UNUSED.
|
||||
* kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
|
||||
(grub_elf64_size): Likewise.
|
||||
|
||||
2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
|
||||
|
||||
* kern/elf.c (grub_elf_file): Call grub_file_seek. Call
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <config.h>
|
||||
#include <grub/cpu/types.h>
|
||||
|
||||
#define __unused __attribute__ ((unused))
|
||||
#define UNUSED __attribute__ ((unused))
|
||||
|
||||
#ifdef GRUB_UTIL
|
||||
# define GRUB_CPU_SIZEOF_VOID_P SIZEOF_VOID_P
|
||||
|
|
|
@ -208,7 +208,7 @@ grub_elf32_size (grub_elf_t elf)
|
|||
/* Run through the program headers to calculate the total memory size we
|
||||
* should claim. */
|
||||
auto int calcsize (grub_elf_t _elf, Elf32_Phdr *phdr, void *_arg);
|
||||
int calcsize (grub_elf_t __unused _elf, Elf32_Phdr *phdr, void __unused *_arg)
|
||||
int calcsize (grub_elf_t UNUSED _elf, Elf32_Phdr *phdr, void UNUSED *_arg)
|
||||
{
|
||||
/* Only consider loadable segments. */
|
||||
if (phdr->p_type != PT_LOAD)
|
||||
|
@ -352,7 +352,7 @@ grub_elf64_size (grub_elf_t elf)
|
|||
/* Run through the program headers to calculate the total memory size we
|
||||
* should claim. */
|
||||
auto int calcsize (grub_elf_t _elf, Elf64_Phdr *phdr, void *_arg);
|
||||
int calcsize (grub_elf_t __unused _elf, Elf64_Phdr *phdr, void __unused *_arg)
|
||||
int calcsize (grub_elf_t UNUSED _elf, Elf64_Phdr *phdr, void UNUSED *_arg)
|
||||
{
|
||||
/* Only consider loadable segments. */
|
||||
if (phdr->p_type != PT_LOAD)
|
||||
|
|
Loading…
Reference in a new issue