Skip to content

Commit

Permalink
tree-wide: s/__unused/__lxc_unused/g
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 8, 2019
1 parent 1a4b9d4 commit f29b71c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lxc/compiler.h
Expand Up @@ -47,9 +47,9 @@

/* This attribute is required to silence clang warnings */
#if defined(__GNUC__)
#define __unused __attribute__ ((unused))
#define __lxc_unused __attribute__ ((unused))
#else
#define __unused
#define __lxc_unused
#endif

#define __cgfsng_ops
Expand Down
4 changes: 2 additions & 2 deletions src/lxc/log.h
Expand Up @@ -238,10 +238,10 @@ static inline void __lxc_log(const struct lxc_log_category *category,
*/
#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 *, ...); \
\
__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, ...) \
{ \
if (lxc_log_priority_is_enabled(acategory, LXC_LOG_LEVEL_##LEVEL)) { \
Expand Down
2 changes: 1 addition & 1 deletion src/lxc/start.c
Expand Up @@ -1104,7 +1104,7 @@ void lxc_abort(const char *name, struct lxc_handler *handler)
static int do_start(void *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];
__do_close_prot_errno int status_fd = -EBADF;
int ret;
Expand Down

0 comments on commit f29b71c

Please sign in to comment.