diff options
Diffstat (limited to 'src/inspect_fs_unix.c')
-rw-r--r-- | src/inspect_fs_unix.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 |