@@ -88,7 +88,8 @@ swap_open(struct boot_file_t* file, struct partition_t* part,
for(i=0; i< ARRAY_SIZE(signatures); i++) {
int blk = part->part_start + (signatures[i].offset / part->blocksize);
- int rc = prom_readblocks(file->of_device, blk, BLKCOUNT, buffer);
+ int __attribute__((unused)) rc =
+ prom_readblocks(file->of_device, blk, BLKCOUNT, buffer);
/* FIXME: going past partition length */
DEBUG_F("Looking for %s @ offset 0x%x, rc == %d, blk=0x%x\n",
@@ -1509,7 +1509,8 @@ setup_display(void)
0xff, 0xff, 0x55,
0xff, 0xff, 0xff
};
- int i, result;
+ int i;
+ int __attribute__((unused)) result;
prom_handle scrn = PROM_INVALID_HANDLE;
/* Try Apple's mac-boot screen ihandle */
This patch introduces a dependency on gcc. It should be fine. Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> --- second/fs_swap.c | 3 ++- second/yaboot.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)