summaryrefslogtreecommitdiff
path: root/src/pr.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2016-09-14 11:48:33 -0700
committerJim Meyering <meyering@fb.com>2016-10-15 08:41:42 -0700
commit0d9323ec551ae3de965167247c32dc4d6a407862 (patch)
tree9fb52cff0046e11b4a98ec982c5f1c62529110af /src/pr.c
parent1d5fe84b4eabb54bf0847eaf83a15c2dae21d2f6 (diff)
downloadcoreutils-0d9323ec551ae3de965167247c32dc4d6a407862.tar.xz
maint: pr: avoid new GCC 7 warning
* src/pr.c (main): Avoid this warning from GCC 7: src/pr.c:1119:6: error: assuming signed overflow does not occur when \ simplifying conditional to constant [-Werror=strict-overflow] if (n_files == 0)
Diffstat (limited to 'src/pr.c')
-rw-r--r--src/pr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pr.c b/src/pr.c
index d4549a3bb..a22d550a7 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -847,7 +847,7 @@ separator_string (const char *optarg_S)
int
main (int argc, char **argv)
{
- int n_files;
+ unsigned int n_files;
bool old_options = false;
bool old_w = false;
bool old_s = false;