Bug 1031336

Summary: ovmf fails to build with GCC 7
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Gary Ching-Pang Lin <glin>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
See Also: https://bugzilla.tianocore.org/show_bug.cgi?id=416
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1030236    

Description Martin Liška 2017-03-28 12:27:07 UTC
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/ovmf/standard/x86_64

[  156s] /home/abuild/rpmbuild/BUILD/ovmf-2017+git1488934948.29e9bf10dc/MdeModulePkg/Library/UefiHiiLib/HiiLib.c:2205:20: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
[  156s]    while (StringPtr != L'\0') {
[  156s]                     ^~
[  156s] /home/abuild/rpmbuild/BUILD/ovmf-2017+git1488934948.29e9bf10dc/MdeModulePkg/Library/UefiHiiLib/HiiLib.c:2205:10: note: did you mean to dereference the pointer?
[  156s]    while (StringPtr != L'\0') {
[  156s]           ^
[  156s] cc1: all warnings being treated as errors
Comment 1 Gary Ching-Pang Lin 2017-04-05 04:24:11 UTC
upstream fix:
https://github.com/tianocore/edk2/commit/fe4a28ccbfd33cae9e1f56b174d46b4eb2329efd
Comment 2 Gary Ching-Pang Lin 2017-04-06 08:34:20 UTC
Close this bug since the fix was submitted.