coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ptx: avoid new warning/error from upcoming gcc-7.x


From: Jim Meyering
Subject: [PATCH] ptx: avoid new warning/error from upcoming gcc-7.x
Date: Sun, 28 Aug 2016 22:57:10 -0700

I noticed a new warning/error when building with gcc-built-from-git.
Here's the fix:

ptx: avoid new warning/error from upcoming gcc-7.x

* src/ptx.c (fix_output_parameters): Switch to an unsigned type that
matches the OCCURS.file_index type. This avoids the following error
from gcc-7.0.0 20160829 (experimental):
  src/ptx.c:1220:14: error: assuming signed overflow does not occur \
    when simplifying conditional to constant [-Werror=strict-overflow]
          if (file_index > 0)

Attachment: ptx-vs-gcc-git.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]