From f2fae5151f33e933f4d574dc4324b7a8a2ee393c Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Wed, 28 Mar 2012 19:01:56 +0100 Subject: Work around -Wstrict-overflow warning on gcc 4.5.1. --- src/inspect_fs_unix.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/inspect_fs_unix.c') diff --git a/src/inspect_fs_unix.c b/src/inspect_fs_unix.c index e9c7d008..d9852032 100644 --- a/src/inspect_fs_unix.c +++ b/src/inspect_fs_unix.c @@ -287,7 +287,11 @@ parse_lsb_release (guestfs_h *g, struct inspect_fs *fs) } guestfs___free_string_list (lines); - return r; + + /* The unnecessary construct in the next line is required to + * workaround -Wstrict-overflow warning in gcc 4.5.1. + */ + return r ? 1 : 0; } /* The currently mounted device is known to be a Linux root. Try to -- cgit