aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2021-01-06 17:51:03 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2021-01-07 09:26:22 +0000
commited8455806e88deeb7151b9bb23ad5026a36d252d (patch)
tree77778f530c26f4e3b4074c280d81dedd4f423e9d /bin
parent7b0d3a3ccf8d2ea3b7c8338bdf4aa588222f6adc (diff)
downloadsrc-ed8455806e88deeb7151b9bb23ad5026a36d252d.tar.gz
src-ed8455806e88deeb7151b9bb23ad5026a36d252d.zip
Fix all warnings emitted in `make kernel-toolchain`
With this change and D27598 make kernel-toolchain no longer emits any warnings for me. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D27599
Diffstat (limited to 'bin')
-rw-r--r--bin/cat/cat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c
index 7668673f5e89..40d91b243bd4 100644
--- a/bin/cat/cat.c
+++ b/bin/cat/cat.c
@@ -74,7 +74,9 @@ static const char *filename;
static void usage(void) __dead2;
static void scanfiles(char *argv[], int cooked);
+#ifndef BOOTSTRAP_CAT
static void cook_cat(FILE *);
+#endif
static void raw_cat(int);
#ifndef NO_UDOM_SUPPORT
@@ -178,11 +180,13 @@ usage(void)
}
static void
-scanfiles(char *argv[], int cooked)
+scanfiles(char *argv[], int cooked __unused)
{
int fd, i;
char *path;
+#ifndef BOOTSTRAP_CAT
FILE *fp;
+#endif
i = 0;
fd = -1;