summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2024-04-22 08:06:49 (GMT)
committerThomas Haller <thaller@redhat.com>2024-04-22 08:29:47 (GMT)
commit5873497482022167393f3e193d187340df4acf99 (patch)
tree9bbf0d9f17b89f3cb8e7f6c486ab3d4cd50f361a /include
parent0c16c9cbd66b068dc010d4944d73f94e8faea389 (diff)
downloadlibnl-5873497482022167393f3e193d187340df4acf99.zip
libnl-5873497482022167393f3e193d187340df4acf99.tar.gz
libnl-5873497482022167393f3e193d187340df4acf99.tar.bz2
all: use defines for attributes
We have those defines. Use them throughout.
Diffstat (limited to 'include')
-rw-r--r--include/base/nl-base-utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/base/nl-base-utils.h b/include/base/nl-base-utils.h
index 03d568e..a155bba 100644
--- a/include/base/nl-base-utils.h
+++ b/include/base/nl-base-utils.h
@@ -816,8 +816,8 @@ static inline void nl_write_unlock(pthread_rwlock_t *lock)
}
#else
-#define NL_LOCK(NAME) int __unused_lock_##NAME __attribute__((unused))
-#define NL_RW_LOCK(NAME) int __unused_lock_##NAME __attribute__((unused))
+#define NL_LOCK(NAME) int __unused_lock_##NAME _nl_unused
+#define NL_RW_LOCK(NAME) int __unused_lock_##NAME _nl_unused
#define nl_lock(LOCK) \
do { \