summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inspect_fs_unix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/inspect_fs_unix.c b/src/inspect_fs_unix.c
index 89b02c0d..43da6f5d 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