Comment lines that may produce compiler warnings
[wimlib] / src / write.c
index 777fa2c01b7089bfb2c76a5213157e1b4a6e8ab4..86730ff7fec7a1158b6ed8bed305ec784b9375aa 100644 (file)
@@ -1867,7 +1867,9 @@ out_ftruncate:
        if (ret != 0 && !(write_flags & WIMLIB_WRITE_FLAG_NO_LOOKUP_TABLE)) {
                WARNING("Truncating `%s' to its original size (%"PRIu64" bytes)",
                        w->filename, old_wim_end);
-               truncate(w->filename, old_wim_end);
+               /* Return value of truncate() is ignored because this is already
+                * an error path. */
+               (void)truncate(w->filename, old_wim_end);
        }
        w->wim_locked = 0;
        return ret;