]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: avoid uniq.c warning from bleeding-edge gcc's -Wstrict-overflow
authorJim Meyering <meyering@fb.com>
Thu, 15 Oct 2015 16:09:18 +0000 (09:09 -0700)
committerJim Meyering <meyering@fb.com>
Fri, 16 Oct 2015 15:02:51 +0000 (08:02 -0700)
commite8d7e205309c05cf2c7c9a42b33708b1eb4587ca
tree2d8069320a668216abd082c05e2f2921157e45f7
parentc249a5afc4f480e10346198422a3161931afd574
maint: avoid uniq.c warning from bleeding-edge gcc's -Wstrict-overflow

* src/uniq.c (main): Make the type of "nfiles" unsigned,
to avoid a brand new warning from a gcc I built from today's
sources (gcc version 6.0.0 20151015 (experimental) (GCC)):
src/uniq.c:523:14: error: assuming signed overflow does not occur \
  when simplifying conditional to constant [-Werror=strict-overflow]
           if (nfiles == 2)
              ^
src/uniq.c