On Sep 2, 2014, at 3:45 AM, Olivier Martin <[email protected]> wrote:
> Dear BaseTools maintainer,
>
> GCC 3.4.2 does not support this compiler flag.
> It prevents to build BaseTools on RHEL 5.8.
>
Olivier,
Clang will not compile the tools without -Wno-self-assign, so this change will
break clang.
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror
-Wno-deprecated-declarations -nostdlib -c -g -I .. -I ../Include/Common -I
../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I
../Include/X64/ LzmaCompress.c -o LzmaCompress.o
LzmaCompress.c:46:48: error: explicitly assigning a variable of type 'void *'
to itself [-Werror,-Wself-assign]
static void *SzAlloc(void *p, size_t size) { p = p; return MyAlloc(size); }
~ ^ ~
LzmaCompress.c:47:48: error: explicitly assigning a variable of type 'void *'
to itself [-Werror,-Wself-assign]
static void SzFree(void *p, void *address) { p = p; MyFree(address); }
Thanks,
Andrew Fish
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Olivier Martin <[email protected]>
>
> Regards,
> Olivier
> <BaseTools-Source-C-Removed-Wno-self-assign-from-Makefile.patch>
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel