/* 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
*/
#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)) { \
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;