From 5701750c2c5962a78c7928e352e8aa2c455150f5 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 7 Nov 2013 00:30:41 +0100 Subject: [PATCH] * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious assigning to itself. --- ChangeLog | 5 +++++ util/mkimage.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 236b1018e..dd0c6a4ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-11-07 Vladimir Serbinenko + + * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious + assigning to itself. + 2013-11-05 Gustavo Luiz Duarte 2013-11-05 Paulo Flabiano Smorigo diff --git a/util/mkimage.c b/util/mkimage.c index 3135ba82b..1d2c7eac1 100644 --- a/util/mkimage.c +++ b/util/mkimage.c @@ -646,8 +646,8 @@ struct grub_ieee1275_note #include -static void *SzAlloc(void *p, size_t size) { p = p; return xmalloc(size); } -static void SzFree(void *p, void *address) { p = p; free(address); } +static void *SzAlloc(void *p __attribute__ ((unused)), size_t size) { return xmalloc(size); } +static void SzFree(void *p __attribute__ ((unused)), void *address) { free(address); } static ISzAlloc g_Alloc = { SzAlloc, SzFree }; static void -- 2.47.2