Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libprop Change previous to only apply when buildi...
details: https://anonhg.NetBSD.org/src/rev/fa27de4e6e72
branches: trunk
changeset: 934422:fa27de4e6e72
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Jun 12 00:02:26 2020 +0000
description:
Change previous to only apply when building with clang.
diffstat:
common/lib/libprop/prop_object_impl.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r ae761977a9a4 -r fa27de4e6e72 common/lib/libprop/prop_object_impl.h
--- a/common/lib/libprop/prop_object_impl.h Thu Jun 11 23:19:53 2020 +0000
+++ b/common/lib/libprop/prop_object_impl.h Fri Jun 12 00:02:26 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: prop_object_impl.h,v 1.35 2020/06/11 22:25:44 joerg Exp $ */
+/* $NetBSD: prop_object_impl.h,v 1.36 2020/06/12 00:02:26 thorpej Exp $ */
/*-
* Copyright (c) 2006, 2020 The NetBSD Foundation, Inc.
@@ -492,7 +492,11 @@
#if defined(__NetBSD__)
#include <sys/cdefs.h>
#define _PROP_ARG_UNUSED __unused
-#define _PROP_DEPRECATED(s, m)
+#if defined(__clang__)
+#define _PROP_DEPRECATED(s, m) /* delete */
+#else /* ! __clang__ */
+#define _PROP_DEPRECATED(s, m) __warn_references(s, m)
+#endif /* __clang__ */
#else
#define _PROP_ARG_UNUSED /* delete */
#define _PROP_DEPRECATED(s, m) /* delete */
Home |
Main Index |
Thread Index |
Old Index