summaryrefslogtreecommitdiff
path: root/toxcore/logger.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-02-23 02:22:38 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-02-24 22:20:22 +0000
commitd3b286cb434ed228e7b62cc70cb293e7a5554bfa (patch)
tree9ab3dd66f9dba2ca861ba8c6e098fb96754aa80b /toxcore/logger.h
parentafc80922e720f5d2a93bdfb3745da058e5ddf81b (diff)
Fix a bunch of compiler warnings and remove suppressions.
Diffstat (limited to 'toxcore/logger.h')
-rw-r--r--toxcore/logger.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/toxcore/logger.h b/toxcore/logger.h
index 8c8a639b..b3a8f7dc 100644
--- a/toxcore/logger.h
+++ b/toxcore/logger.h
@@ -26,6 +26,8 @@
26 26
27#include <stdint.h> 27#include <stdint.h>
28 28
29#include "ccompat.h"
30
29#ifndef MIN_LOGGER_LEVEL 31#ifndef MIN_LOGGER_LEVEL
30#define MIN_LOGGER_LEVEL LOG_INFO 32#define MIN_LOGGER_LEVEL LOG_INFO
31#endif 33#endif
@@ -59,8 +61,8 @@ void logger_callback_log(Logger *log, logger_cb *function, void *context, void *
59/** 61/**
60 * Main write function. If logging disabled does nothing. 62 * Main write function. If logging disabled does nothing.
61 */ 63 */
62void logger_write(Logger *log, LOGGER_LEVEL level, const char *file, int line, const char *func, const char *format, 64void logger_write(
63 ...); 65 Logger *log, LOGGER_LEVEL level, const char *file, int line, const char *func, const char *format, ...) GNU_PRINTF;
64 66
65 67
66#define LOGGER_WRITE(log, level, ...) \ 68#define LOGGER_WRITE(log, level, ...) \