diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-06-08 13:11:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-08 13:11:45 +0100 |
commit | 68093d36bf87caf2c2ba7404c06d14ef8416c27a (patch) | |
tree | e419ef82ded619e002592470b7fba186f3f2f9e0 /src | |
parent | f78b52ba24d8d294869cd013dcc4cd5d4a65cea7 (diff) |
patch 8.2.5068: gcc 12.1 warning when building teev8.2.5068
Problem: Gcc 12.1 warning when building tee.
Solution: Change type to size_t. (John Marriott)
Diffstat (limited to 'src')
-rw-r--r-- | src/tee/tee.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/tee/tee.c b/src/tee/tee.c index bed8bad100..415d45dda5 100644 --- a/src/tee/tee.c +++ b/src/tee/tee.c @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) { int append = 0; - int numfiles; + size_t numfiles; int maxfiles; FILE **filepointers; int i; @@ -121,7 +121,8 @@ main(int argc, char *argv[]) filepointers = calloc(numfiles, sizeof(FILE *)); if (filepointers == NULL) { - fprintf(stderr, "Error allocating memory for %d files\n", numfiles); + fprintf(stderr, "Error allocating memory for %ld files\n", + (long)numfiles); exit(1); } for (i = 0; i < numfiles; i++) diff --git a/src/version.c b/src/version.c index aa916b9485..1c19015959 100644 --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 5068, +/**/ 5067, /**/ 5066, |