mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-05 15:58:02 +02:00
util-object: define the cleanup helper functions as used
Cuts down on approximately a million compiler warnings with clang. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6afd5c2f94
commit
d6a654adcc
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ struct type_ * type_##_unref(struct type_ *obj) { \
|
|||
if (!obj) return NULL; \
|
||||
return object_unref(&obj->object); \
|
||||
} \
|
||||
static inline void type_##_unrefp(struct type_ **p_) { \
|
||||
__attribute__((used)) static inline void type_##_unrefp(struct type_ **p_) { \
|
||||
if (*p_) type_##_unref(*p_); \
|
||||
} \
|
||||
struct __useless_struct_to_allow_trailing_semicolon__
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue