diff options
author | kris <kris@FreeBSD.org> | 2001-05-20 05:33:53 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-05-20 05:33:53 +0000 |
commit | 70d80ba289bbd89e4d5fe68364b987b9358647e5 (patch) | |
tree | 2bf49c15919556cc01fb70d23206b92cd9718d42 /bin/test | |
parent | 749bca5ec25366bffe4a51c48364e032b56a58f2 (diff) | |
download | FreeBSD-src-70d80ba289bbd89e4d5fe68364b987b9358647e5.zip FreeBSD-src-70d80ba289bbd89e4d5fe68364b987b9358647e5.tar.gz |
Silence WARNS=2 and BDECFLAGS on alpha and i386
MFC After: 1 week
Diffstat (limited to 'bin/test')
-rw-r--r-- | bin/test/Makefile | 2 | ||||
-rw-r--r-- | bin/test/test.c | 32 |
2 files changed, 19 insertions, 15 deletions
diff --git a/bin/test/Makefile b/bin/test/Makefile index c1bc62c..42be7b2 100644 --- a/bin/test/Makefile +++ b/bin/test/Makefile @@ -5,4 +5,6 @@ PROG= test LINKS= ${BINDIR}/test ${BINDIR}/[ MLINKS= test.1 '[.1' +WARNS= 2 + .include <bsd.prog.mk> diff --git a/bin/test/test.c b/bin/test/test.c index 73e6ebf..1d96297 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -21,6 +21,7 @@ static const char rcsid[] = #include <ctype.h> #include <err.h> #include <errno.h> +#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -143,21 +144,22 @@ struct t_op { struct t_op const *t_wp_op; char **t_wp; -static void syntax __P((const char *, const char *)); -static enum token t_lex __P((char *)); -static int oexpr __P((enum token)); -static int aexpr __P((enum token)); -static int nexpr __P((enum token)); -static int primary __P((enum token)); -static int binop __P((void)); -static int filstat __P((char *, enum token)); -static int isoperand __P((void)); -static int getn __P((const char *)); -static quad_t getq __P((const char *)); -static int intcmp __P((const char *, const char *)); -static int newerf __P((const char *, const char *)); -static int olderf __P((const char *, const char *)); -static int equalf __P((const char *, const char *)); +static int aexpr __P((enum token)); +static int binop __P((void)); +static int equalf __P((const char *, const char *)); +static int filstat __P((char *, enum token)); +static int getn __P((const char *)); +static quad_t getq __P((const char *)); +static int intcmp __P((const char *, const char *)); +static int isoperand __P((void)); +int main __P((int, char **)); +static int newerf __P((const char *, const char *)); +static int nexpr __P((enum token)); +static int oexpr __P((enum token)); +static int olderf __P((const char *, const char *)); +static int primary __P((enum token)); +static void syntax __P((const char *, const char *)); +static enum token t_lex __P((char *)); int main(argc, argv) |