From: Olaf Hering Date: Thu, 10 May 2012 10:19:05 +0000 (+0100) Subject: tools/blktap2: fix build errors caused by Werror in X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0e63f12a2c773fcd4c40e7caf2ba68deb0c77acc;p=xen.git 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 Committed-by: Keir Fraser --- diff --git a/tools/blktap2/vhd/lib/libvhd-journal.c b/tools/blktap2/vhd/lib/libvhd-journal.c index 7edd182dc3..26e26e7c36 100644 --- a/tools/blktap2/vhd/lib/libvhd-journal.c +++ b/tools/blktap2/vhd/lib/libvhd-journal.c @@ -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; }