]> git.ipfire.org Git - thirdparty/libarchive.git/commit
tests: fix compile error with -Wshadow on older gcc releases 1087/head
authorRolf Eike Beer <eike@sf-mail.de>
Wed, 21 Nov 2018 19:22:31 +0000 (20:22 +0100)
committerRolf Eike Beer <eike@sf-mail.de>
Wed, 21 Nov 2018 19:22:31 +0000 (20:22 +0100)
commit9e2d778f3a1044720e92eba86c28a9b98866c408
tree1b165d21292d2158d367ee7c939dd291d5d6bf6c
parentc114bb9fb585e7d74158afa7afbe8c44922479de
tests: fix compile error with -Wshadow on older gcc releases

Older gcc releases also warn when a local variable has the name of a global
function, like this output from gcc 4.6:

test_read_format_rar5.c:93:23: error: declaration of 'read' shadows a global declaration [-Werror=shadow]
libarchive/test/test_read_format_rar5.c