]> git.ipfire.org Git - thirdparty/coreutils.git/commit
build: Pacify GCC 5 on 32-bit hosts
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 3 Oct 2015 07:24:43 +0000 (00:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 3 Oct 2015 07:32:34 +0000 (00:32 -0700)
commitf689642bac132e189d0c0960c171ae9043a37298
treebd7b30736bbf8d27f4f2ea0425dfb31ace4a5aac
parent3ba68f9e64fa2eb8af22d510437a0c6441feb5e0
build: Pacify GCC 5 on 32-bit hosts

This pacifies GCC 5 in a better way, without disabling diagnostics.
* src/df.c (main): Tell compiler that optind is positive.
* src/shred.c (known): New function.
(dopass): Go back to off_t for file sizes.
Avoid integer overflow if we run off the end of the file.
Tell compiler that a write cannot write more bytes than requested.
src/df.c
src/shred.c