[coreboot-gerrit] Change in ...coreboot[master]: util/cbfstool: Fix GCC error due to a shadowed declaration

Werner Zeh (Code Review) gerrit at coreboot.org
Wed Nov 21 13:14:24 CET 2018


Werner Zeh has uploaded a new patch set (#2). ( https://review.coreboot.org/c/coreboot/+/29776 )

Change subject: util/cbfstool: Fix GCC error due to a shadowed declaration
......................................................................

util/cbfstool: Fix GCC error due to a shadowed declaration

There is already a function with the name buffer_size(). Adding a local
variable with the same name will lead to the following error on older
GCC versions (e.g. version 4.4.7):

declaration of 'buffer_size' shadows a global declaration

To fix this rename the local variable to buffer_len.

Change-Id: Ifae3a17152f2f9852d29a4ac038f7e5a75a41614
Signed-off-by: Werner Zeh <werner.zeh at siemens.com>
---
M util/cbfstool/cbfs_image.c
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/76/29776/2
-- 
To view, visit https://review.coreboot.org/c/coreboot/+/29776
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ifae3a17152f2f9852d29a4ac038f7e5a75a41614
Gerrit-Change-Number: 29776
Gerrit-PatchSet: 2
Gerrit-Owner: Werner Zeh <werner.zeh at siemens.com>
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181121/526bc083/attachment.html>


More information about the coreboot-gerrit mailing list