mirror of
git://github.com/lxc/lxc
synced 2025-09-03 23:19:30 +00:00
memory_utils: make cleanup handler as unused
They are sometimes used to just clean something up automatically at end of scope but the variables themselves might not be actually used. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -20,7 +20,8 @@
|
|||||||
cleaner(*ptr); \
|
cleaner(*ptr); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define call_cleaner(cleaner) __attribute__((__cleanup__(cleaner##_function)))
|
#define call_cleaner(cleaner) \
|
||||||
|
__attribute__((__cleanup__(cleaner##_function))) __attribute__((unused))
|
||||||
|
|
||||||
#define close_prot_errno_disarm(fd) \
|
#define close_prot_errno_disarm(fd) \
|
||||||
if (fd >= 0) { \
|
if (fd >= 0) { \
|
||||||
|
Reference in New Issue
Block a user