summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/fprintf.c
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2018-02-04 01:13:45 +0000
committermrg <mrg@NetBSD.org>2018-02-04 01:13:45 +0000
commit8ca12eafd302fa1b84a7cb1791c4f721c48a71fd (patch)
tree4b66ad42afa64b81fe9a71da7c5cc5397adfd3b3 /lib/libc/stdio/fprintf.c
parent60662d108045c74e964aa980e064cc09b426dc08 (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.c5
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);