mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
build: avoid compiler warning on shadowed name
Introduced in commit d1e55de3
.
virstoragetest.c: In function ‘testStorageChain’:
virstoragetest.c:249:10: warning: declaration of ‘abs’ shadows a global
declaration [-Wshadow]
This commit is contained in:
parent
548f21d087
commit
a18c713013
@ -246,7 +246,7 @@ testStorageChain(const void *args)
|
||||
virStorageFileMetadataPtr elt;
|
||||
size_t i = 0;
|
||||
char *broken = NULL;
|
||||
bool abs = !!(data->flags & ABS_START);
|
||||
bool isAbs = !!(data->flags & ABS_START);
|
||||
|
||||
meta = virStorageFileGetMetadata(data->start, data->format, -1, -1,
|
||||
(data->flags & ALLOW_PROBE) != 0);
|
||||
@ -292,7 +292,7 @@ testStorageChain(const void *args)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
expDirectory = abs ? data->files[i]->expDirectoryAbs
|
||||
expDirectory = isAbs ? data->files[i]->expDirectoryAbs
|
||||
: data->files[i]->expDirectoryRel;
|
||||
if (virAsprintf(&expect,
|
||||
"store:%s\nraw:%s\ndirectory:%s\nother:%d %d %lld %d",
|
||||
|
Loading…
Reference in New Issue
Block a user