Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include elide strict-prototypes for unrepresentable function



details:   https://anonhg.NetBSD.org/src/rev/177d1eaea79a
branches:  trunk
changeset: 350662:177d1eaea79a
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 15 20:10:25 2017 +0000

description:
elide strict-prototypes for unrepresentable function

diffstat:

 include/ucontext.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 9cbcc20c6a9d -r 177d1eaea79a include/ucontext.h
--- a/include/ucontext.h        Sun Jan 15 18:15:45 2017 +0000
+++ b/include/ucontext.h        Sun Jan 15 20:10:25 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ucontext.h,v 1.9 2015/11/19 20:57:49 reinoud Exp $     */
+/*     $NetBSD: ucontext.h,v 1.10 2017/01/15 20:10:25 christos Exp $   */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -38,7 +38,12 @@
 __BEGIN_DECLS
 int    getcontext(ucontext_t *) __returns_twice;
 int    setcontext(const ucontext_t *);
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-prototypes"
 void   makecontext(ucontext_t *, void (*)(), int, ...);
+#pragma GCC diagnostic pop
+
 int    swapcontext(ucontext_t * __restrict, const ucontext_t * __restrict);
 __END_DECLS
 



Home | Main Index | Thread Index | Old Index