[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)
ptx-vs-gcc-git.diff
Description: Text document
- [PATCH] ptx: avoid new warning/error from upcoming gcc-7.x,
Jim Meyering <=