diff options
author | Richard Jones <rjones@redhat.com> | 2012-03-28 19:01:56 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-03-30 15:37:11 +0100 |
commit | c255e7b40dceaed21a06178b3c36d4d2e9d5f9d0 (patch) | |
tree | fb7eeea24748e7d7bdb511520a2f252b999dc034 /src/inspect_fs_unix.c | |
parent | 938cfcc69293cd978732f583d7afd92c4c474606 (diff) | |
download | libguestfs-c255e7b40dceaed21a06178b3c36d4d2e9d5f9d0.tar.gz libguestfs-c255e7b40dceaed21a06178b3c36d4d2e9d5f9d0.tar.xz libguestfs-c255e7b40dceaed21a06178b3c36d4d2e9d5f9d0.zip |
Work around -Wstrict-overflow warning on gcc 4.5.1.
(cherry picked from commit f2fae5151f33e933f4d574dc4324b7a8a2ee393c)
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 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 |