tools/blktap2: fix build errors caused by Werror in

vhd_journal_write_entry

-O2 -Wall -Werror triggers these warnings:

libvhd-journal.c: In function 'vhd_journal_write_entry':
libvhd-journal.c:335: warning: statement with no effect

Really return the error from vhd_journal_write() to caller.

v2:
 - simplify the patch by just adding the missing return statement

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Keir Fraser <keir@xen.org>
This commit is contained in:
Olaf Hering committed 2012-05-10 11:19:05 +01:00
1 parent d47e6a744e
commit 0e63f12a2c
1 file changed
+1 -1
+1 -1
View File
@@ -332,7 +332,7 @@ vhd_journal_write_entry(vhd_journal_t *j, vhd_journal_entry_t *entry)
err = vhd_journal_write(j, &e, sizeof(vhd_journal_entry_t));
if (err)
err;
return err;
return 0;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.