Aaron Durbin (adurbin@chromium.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13788
-gerrit
commit aa423702fb475c13e3b06be55fd094a96f3eb84a Author: Aaron Durbin adurbin@chromium.org Date: Wed Feb 24 18:49:25 2016 -0600
lib/memrange: avoid shadow object declarations
Fix an error where a variable named 'free' was shadowing a the function 'free'.
src/lib/memrange.c:293:73: error: declaration of 'free' shadows a global declaration [-Werror=shadow]
Change-Id: Ie57194b392f8f00ed4fd5c76dab27299b00ae293 Signed-off-by: Aaron Duribn adurbin@chromium.org --- src/lib/memrange.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/memrange.c b/src/lib/memrange.c index cc75e01..489b562 100644 --- a/src/lib/memrange.c +++ b/src/lib/memrange.c @@ -290,7 +290,7 @@ void memranges_add_resources(struct memranges *ranges, memranges_add_resources_filter(ranges, mask, match, tag, NULL); }
-void memranges_init_empty(struct memranges *ranges, struct range_entry *free, +void memranges_init_empty(struct memranges *ranges, struct range_entry *to_free, size_t num_free) { size_t i; @@ -299,7 +299,7 @@ void memranges_init_empty(struct memranges *ranges, struct range_entry *free, ranges->free_list = NULL;
for (i = 0; i < num_free; i++) - range_entry_link(&ranges->free_list, &free[i]); + range_entry_link(&ranges->free_list, &to_free[i]); }
void memranges_init(struct memranges *ranges,