diff options
author | Richard Jones <rjones@redhat.com> | 2012-03-28 19:01:56 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2012-03-28 19:01:56 +0100 |
commit | f2fae5151f33e933f4d574dc4324b7a8a2ee393c (patch) | |
tree | 12cd7ffe8d3a9a07528a3d7343b418c2c4602ffc /src/inspect_fs_unix.c | |
parent | b169b03dd42b82218c7241f33425c27660e4bdae (diff) | |
download | libguestfs-f2fae5151f33e933f4d574dc4324b7a8a2ee393c.tar.gz libguestfs-f2fae5151f33e933f4d574dc4324b7a8a2ee393c.tar.xz libguestfs-f2fae5151f33e933f4d574dc4324b7a8a2ee393c.zip |
Work around -Wstrict-overflow warning on gcc 4.5.1.
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 |