tree-wide: s/__unused/__lxc_unused/g

parent 1a4b9d44
...@@ -47,9 +47,9 @@ ...@@ -47,9 +47,9 @@
/* This attribute is required to silence clang warnings */ /* This attribute is required to silence clang warnings */
#if defined(__GNUC__) #if defined(__GNUC__)
#define __unused __attribute__ ((unused)) #define __lxc_unused __attribute__ ((unused))
#else #else
#define __unused #define __lxc_unused
#endif #endif
#define __cgfsng_ops #define __cgfsng_ops
......
...@@ -238,10 +238,10 @@ static inline void __lxc_log(const struct lxc_log_category *category, ...@@ -238,10 +238,10 @@ static inline void __lxc_log(const struct lxc_log_category *category,
*/ */
#define lxc_log_priority_define(acategory, LEVEL) \ #define lxc_log_priority_define(acategory, LEVEL) \
\ \
__unused __attribute__ ((format (printf, 2, 3))) \ __lxc_unused __attribute__ ((format (printf, 2, 3))) \
static inline void LXC_##LEVEL(struct lxc_log_locinfo *, const char *, ...); \ static inline void LXC_##LEVEL(struct lxc_log_locinfo *, const char *, ...); \
\ \
__unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
const char* format, ...) \ const char* format, ...) \
{ \ { \
if (lxc_log_priority_is_enabled(acategory, LXC_LOG_LEVEL_##LEVEL)) { \ if (lxc_log_priority_is_enabled(acategory, LXC_LOG_LEVEL_##LEVEL)) { \
......
...@@ -1104,7 +1104,7 @@ void lxc_abort(const char *name, struct lxc_handler *handler) ...@@ -1104,7 +1104,7 @@ void lxc_abort(const char *name, struct lxc_handler *handler)
static int do_start(void *data) static int do_start(void *data)
{ {
struct lxc_handler *handler = data; struct lxc_handler *handler = data;
__unused __do_close_prot_errno int data_sock0 = handler->data_sock[0], __lxc_unused __do_close_prot_errno int data_sock0 = handler->data_sock[0],
data_sock1 = handler->data_sock[1]; data_sock1 = handler->data_sock[1];
__do_close_prot_errno int status_fd = -EBADF; __do_close_prot_errno int status_fd = -EBADF;
int ret; int ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment