summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a870053)
raw | patch | inline | side by side (parent: a870053)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 20 Jan 2016 08:47:31 +0000 (09:47 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 20 Jan 2016 08:47:31 +0000 (09:47 +0100) |
Fixes this warning raised by gcc-6's new "misleading-indentation"
option:
```
virt.c: In function 'lv_init':
virt.c:331:2: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
return 0;
^~~~~~
virt.c:328:5: note: ...this 'if' clause, but it is not
if (virInitialize () != 0)
^~
```
option:
```
virt.c: In function 'lv_init':
virt.c:331:2: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
return 0;
^~~~~~
virt.c:328:5: note: ...this 'if' clause, but it is not
if (virInitialize () != 0)
^~
```
src/libvirt.c | patch | blob | history |
diff --git a/src/libvirt.c b/src/libvirt.c
index 6a397db3e5285829f0739ec2f1f3960e0b6362fa..4cbe38d2c1f8a05d9fabd43a48c8dbb64c89c106 100644 (file)
--- a/src/libvirt.c
+++ b/src/libvirt.c
{
if (virInitialize () != 0)
return -1;
-
- return 0;
+ else
+ return 0;
}
static int