diff options
| author | thorpej <thorpej@NetBSD.org> | 2020-06-12 00:02:26 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2020-06-12 00:02:26 +0000 |
| commit | a885d03b3a5ebd1b4450737b26af00151ac5167c (patch) | |
| tree | 2cbab8ea2bf0e13f4c732048275cdef0d43d59cd /common | |
| parent | 272b9a8d0c56c378ae2a9d618d2ee425c3ee7472 (diff) | |
Change previous to only apply when building with clang.
Diffstat (limited to 'common')
| -rw-r--r-- | common/lib/libprop/prop_object_impl.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/lib/libprop/prop_object_impl.h b/common/lib/libprop/prop_object_impl.h index 5cb6afea77b..19f62201e56 100644 --- a/common/lib/libprop/prop_object_impl.h +++ b/common/lib/libprop/prop_object_impl.h @@ -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 @@ do { \ #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 */ |
