summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/ucontext.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ucontext.h b/include/ucontext.h
index 28bc2b6e81f..12d640c26e6 100644
--- a/include/ucontext.h
+++ b/include/ucontext.h
@@ -1,4 +1,4 @@
-/* $NetBSD: ucontext.h,v 1.10 2017/01/15 20:10:25 christos Exp $ */
+/* $NetBSD: ucontext.h,v 1.11 2018/02/04 01:13:45 mrg Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -40,7 +40,9 @@ int getcontext(ucontext_t *) __returns_twice;
int setcontext(const ucontext_t *);
#pragma GCC diagnostic push
+#ifndef __cplusplus
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
+#endif
void makecontext(ucontext_t *, void (*)(), int, ...);
#pragma GCC diagnostic pop