mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
LzmaTools: don't self assign values
It seems the code tries to trick the compiler the argument is actually used. However compilers became too smart to fool them so easily an now warn. Gcc and clang don't seem to emit a warning when the argument is unused. If so it should be decorated with unused / (void). Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
This commit is contained in:
parent
c84f9e0d42
commit
867abdac5e
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@
|
|||
#include <linux/string.h>
|
||||
#include <malloc.h>
|
||||
|
||||
static void *SzAlloc(void *p, size_t size) { p = p; return malloc(size); }
|
||||
static void SzFree(void *p, void *address) { p = p; free(address); }
|
||||
static void *SzAlloc(void *p, size_t size) { return malloc(size); }
|
||||
static void SzFree(void *p, void *address) { free(address); }
|
||||
|
||||
int lzmaBuffToBuffDecompress (unsigned char *outStream, SizeT *uncompressedSize,
|
||||
unsigned char *inStream, SizeT length)
|
||||
|
|
Loading…
Reference in a new issue