Heyi: Thanks for your report them. For the first issue, could you let me know your GCC version? I don’t reproduce it in my local. We will fix the second one first.
Thanks Liming From: Heyi Guo [mailto:[email protected]] Sent: Friday, September 25, 2015 3:42 AM To: [email protected]; Zhu, Yonghong; Gao, Liming Subject: Re: [edk2] BaseTools build warnings Hi Yonghong or Liming, Could you help to take a look at below issue? Thanks a lot. Heyi Guo On 09/18/2015 05:13 PM, Heyi Guo wrote: Hi folks, I got below warnings when building BaseTools on Debian X86_64 with gcc (Debian 5.2.1-17) 5.2.1 20150911), can we fix it in BaseTools source code? Thanks. 1. gcc -o ../bin/VolInfo VolInfo.o -L../libs -lCommon VolInfo.o: In function `ParseSection': /home/gary/git/uefi-dev/BaseTools/Source/C/VolInfo/VolInfo.c:1426: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory '/home/gary/git/uefi-dev/BaseTools/Source/C/VolInfo' 2. Antlr parser generator Version 1.33MR33 1989-2001 VfrSyntax.g, line 1821: warning: predicate: LT(i) missing, bad, or with i=0; assuming i=1 VfrSyntax.g, line 1826: warning: predicate: LT(i) missing, bad, or with i=0; assuming i=1 3. g++ -I Pccts/h -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -c -o VfrError.o VfrError.cpp VfrError.cpp: In member function ‘UINT8 CVfrErrorHandle::HandleWarning(EFI_VFR_WARNING_CODE, UINT32, CHAR8*)’: VfrError.cpp:283:72: warning: deprecated conversion from string constant to ‘CHAR8* {aka char*}’ [-Wwrite-strings] Error (FileName, FileLine, 0x2220, "warning treated as error", NULL); _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

