Skip to content

Commit

Permalink
Fix all warnings emitted in make kernel-toolchain
Browse files Browse the repository at this point in the history
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
  • Loading branch information
arichardson committed Jan 7, 2021
1 parent 7b0d3a3 commit ed84558
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion bin/cat/cat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions tools/build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ INCS+= libcasper.h
# not match.
RPCINCS+= ${SRCTOP}/sys/rpc/types.h

.if ${.MAKE.OS} != "FreeBSD"
.PATH: ${.CURDIR}/cross-build

INCS+= ${SRCTOP}/include/mpool.h
INCS+= ${SRCTOP}/include/ndbm.h
INCS+= ${SRCTOP}/include/err.h
Expand Down Expand Up @@ -143,6 +140,9 @@ INCS+= ${SRCTOP}/include/nlist.h
SYSINCS+= ${SRCTOP}/sys/sys/imgact_aout.h
SYSINCS+= ${SRCTOP}/sys/sys/nlist_aout.h


.if ${.MAKE.OS} != "FreeBSD"
.PATH: ${.CURDIR}/cross-build
# dbopen() behaves differently on Linux and FreeBSD so we ensure that we
# bootstrap the FreeBSD db code. The cross-build headers #define dbopen() to
# __freebsd_dbopen() so that we don't ever use the host version
Expand Down

0 comments on commit ed84558

Please sign in to comment.