mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 00:01:55 +00:00
remote_driver: Work around broken clang
In recent commit of v9.0.0-191-gc71c159248 I've introduced remoteConnectFormatURI() function and in the function @query variable. Even though, the variable is used, clang-13 fails to see it. Surprisingly, newer clang is not affected. Fortunately, swapping the order in which variables are set makes clang happy again. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
8a63add283
commit
e4cf477701
@ -712,7 +712,7 @@ remoteConnectFormatURI(virURI *uri,
|
||||
virURIParamsSetIgnore(uri, false, names);
|
||||
}
|
||||
|
||||
query = tmpuri.query = virURIFormatParams(uri);
|
||||
tmpuri.query = query = virURIFormatParams(uri);
|
||||
|
||||
ret = virURIFormat(&tmpuri);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user