]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
authorVladimir Serbinenko <phcoder@gmail.com>
Wed, 6 Nov 2013 23:30:41 +0000 (00:30 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Wed, 6 Nov 2013 23:30:41 +0000 (00:30 +0100)
assigning to itself.

ChangeLog
util/mkimage.c

index 236b1018ee646bb412a7cc0797d7ad2c2eb9e85e..dd0c6a4ef634dcddfc2f165b61fbd805bd3558f6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
index 3135ba82bb84b348959d6e11201ead3538766e20..1d2c7eac13283c754500480a3ad4b1dc1c5446cb 100644 (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