[libvirt] [PATCH] build: drop unused variable
Eric Blake
eblake at redhat.com
Tue May 28 23:20:19 UTC 2013
Compilation for mingw failed:
../../src/util/virutil.c: In function 'virGetWin32DirectoryRoot':
../../src/util/virutil.c:1094:9: error: unused variable 'ret' [-Werror=unused-variable]
* src/util/virutil.c (virGetWin32DirectoryRoot): Silence compiler
warning.
Signed-off-by: Eric Blake <eblake at redhat.com>
---
Compilation still fails in the tests directory, due to the use of
fprintf(stderr, "%zu", size_t); I'm still debating whether I can
get it fixed in gnulib and take the risk of a gnulib backport before
rc2, or whether we'll have to come up with some other less-invasive
workaround.
src/util/virutil.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/util/virutil.c b/src/util/virutil.c
index 028f1d1..a29da14 100644
--- a/src/util/virutil.c
+++ b/src/util/virutil.c
@@ -1091,7 +1091,6 @@ static int
virGetWin32DirectoryRoot(char **path)
{
char windowsdir[MAX_PATH];
- int ret = 0;
*path = NULL;
--
1.8.1.4
More information about the libvir-list
mailing list