From 03d7d5f0c4f026dfd9de6d005038c306183effbe Mon Sep 17 00:00:00 2001 From: millert <> Date: Sat, 21 Dec 1996 22:23:43 +0000 Subject: -Wall madness. --- src/regress/lib/libc/ieeefp/except/except.c | 1 + src/regress/lib/libc/regex/debug.c | 2 +- src/regress/lib/libc/regex/main.c | 9 ++++++--- src/regress/lib/libc/setjmp/jmptest.c | 1 + 4 files changed, 9 insertions(+), 4 deletions(-) (limited to 'src/regress/lib/libc') diff --git a/src/regress/lib/libc/ieeefp/except/except.c b/src/regress/lib/libc/ieeefp/except/except.c index 0ffdcdd468..a2a107a788 100644 --- a/src/regress/lib/libc/ieeefp/except/except.c +++ b/src/regress/lib/libc/ieeefp/except/except.c @@ -12,6 +12,7 @@ static volatile const double zero = 0.0; static volatile const double huge = DBL_MAX; static volatile const double tiny = DBL_MIN; +int main() { volatile double x; diff --git a/src/regress/lib/libc/regex/debug.c b/src/regress/lib/libc/regex/debug.c index 861f550611..41cd4a557d 100644 --- a/src/regress/lib/libc/regex/debug.c +++ b/src/regress/lib/libc/regex/debug.c @@ -218,7 +218,7 @@ FILE *d; fprintf(d, ">"); break; default: - fprintf(d, "!%d(%d)!", OP(*s), opnd); + fprintf(d, "!%ld(%ld)!", (long)OP(*s), (long)opnd); break; } if (!done) diff --git a/src/regress/lib/libc/regex/main.c b/src/regress/lib/libc/regex/main.c index 8d88a8b9b8..add5e8be10 100644 --- a/src/regress/lib/libc/regex/main.c +++ b/src/regress/lib/libc/regex/main.c @@ -1,10 +1,13 @@ +/* $OpenBSD: main.c,v 1.2 1996/12/21 22:23:42 millert Exp $ */ /* $NetBSD: main.c,v 1.2 1995/04/20 22:39:51 cgd Exp $ */ #include +#include #include #include #include #include +#include #include "main.ih" @@ -25,6 +28,7 @@ extern void regprint(); /* - main - do the simple case, hand off to regress() for regression */ +int main(argc, argv) int argc; char *argv[]; @@ -102,10 +106,10 @@ char *argv[]; exit(status); } if (!(copts®_NOSUB)) { - len = (int)(subs[0].rm_eo - subs[0].rm_so); + len = (size_t)(subs[0].rm_eo - subs[0].rm_so); if (subs[0].rm_so != -1) { if (len != 0) - printf("match `%.*s'\n", len, + printf("match `%.*s'\n", (int)len, argv[optind] + subs[0].rm_so); else printf("match `'@%.1s\n", @@ -501,7 +505,6 @@ efind(name) char *name; { static char efbuf[100]; - size_t n; regex_t re; sprintf(efbuf, "REG_%s", name); diff --git a/src/regress/lib/libc/setjmp/jmptest.c b/src/regress/lib/libc/setjmp/jmptest.c index f2cecc9178..c306979b3d 100644 --- a/src/regress/lib/libc/setjmp/jmptest.c +++ b/src/regress/lib/libc/setjmp/jmptest.c @@ -32,6 +32,7 @@ */ #include +#include #include #include #include -- cgit v1.2.3-55-g6feb