* util/mkimage.c (SzAlloc): Use attribute unused rather than dubious

assigning to itself.
This commit is contained in:
Vladimir Serbinenko 2013-11-07 00:30:41 +01:00
parent 9e236169e9
commit 5701750c2c
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
* util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
assigning to itself.
2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>

View file

@ -646,8 +646,8 @@ struct grub_ieee1275_note
#include <grub/lib/LzmaEnc.h>
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