diff options
| author | mrg <mrg@NetBSD.org> | 2018-02-04 01:13:45 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2018-02-04 01:13:45 +0000 |
| commit | 8ca12eafd302fa1b84a7cb1791c4f721c48a71fd (patch) | |
| tree | 4b66ad42afa64b81fe9a71da7c5cc5397adfd3b3 /lib/libc/stdio/fprintf.c | |
| parent | 60662d108045c74e964aa980e064cc09b426dc08 (diff) | |
fixes for GCC 6:
- -Wstrict-prototypes is not available for C++, so don't try to
ignore it for C++.
- remove many _DIAGASSERT() checks against not NULL for functions
with arguments with nonnull attributes. in two cases, leave
code behind that should set defaults to "(null)".
- use -Wno-error=frame-address for i386 mcount, as it seems valid
to assume the caller will have a frame.fair
Diffstat (limited to 'lib/libc/stdio/fprintf.c')
| -rw-r--r-- | lib/libc/stdio/fprintf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/stdio/fprintf.c b/lib/libc/stdio/fprintf.c index 9b00d7d0d00..c7c054e5384 100644 --- a/lib/libc/stdio/fprintf.c +++ b/lib/libc/stdio/fprintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: fprintf.c,v 1.13 2013/04/19 15:22:25 joerg Exp $ */ +/* $NetBSD: fprintf.c,v 1.14 2018/02/04 01:13:45 mrg Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)fprintf.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: fprintf.c,v 1.13 2013/04/19 15:22:25 joerg Exp $"); +__RCSID("$NetBSD: fprintf.c,v 1.14 2018/02/04 01:13:45 mrg Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -54,7 +54,6 @@ fprintf(FILE *fp, const char *fmt, ...) va_list ap; _DIAGASSERT(fp != NULL); - _DIAGASSERT(fmt != NULL); va_start(ap, fmt); ret = vfprintf(fp, fmt, ap); |
