#define LXC_LOG_PREFIX_SIZE 32
#define LXC_LOG_BUFFER_SIZE 512
+/* This attribute is required to silence clang warnings */
+#if defined(__GNUC__)
+#define ATTR_UNUSED __attribute__ ((unused))
+#else
+#define ATTR_UNUSED
+#endif
+
/* predefined priorities. */
enum lxc_loglevel {
LXC_LOG_PRIORITY_TRACE,
*/
#define lxc_log_priority_define(acategory, PRIORITY) \
\
-static inline void LXC_##PRIORITY(struct lxc_log_locinfo *, \
+ATTR_UNUSED static inline void LXC_##PRIORITY(struct lxc_log_locinfo *, \
const char *, ...) __attribute__ ((format (printf, 2, 3))); \
\
-static inline void LXC_##PRIORITY(struct lxc_log_locinfo* locinfo, \
+ATTR_UNUSED static inline void LXC_##PRIORITY(struct lxc_log_locinfo* locinfo, \
const char* format, ...) \
{ \
if (lxc_log_priority_is_enabled(acategory, \
struct lxc_list *it, *next;
char *const default_start_args[] = {
"/sbin/init",
- '\0',
+ NULL,
};
if (lxc_arguments_parse(&my_args, argc, argv))