diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-02-23 02:22:38 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-02-24 22:20:22 +0000 |
commit | d3b286cb434ed228e7b62cc70cb293e7a5554bfa (patch) | |
tree | 9ab3dd66f9dba2ca861ba8c6e098fb96754aa80b /toxcore/logger.h | |
parent | afc80922e720f5d2a93bdfb3745da058e5ddf81b (diff) |
Fix a bunch of compiler warnings and remove suppressions.
Diffstat (limited to 'toxcore/logger.h')
-rw-r--r-- | toxcore/logger.h | 6 |
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 | */ |
62 | void logger_write(Logger *log, LOGGER_LEVEL level, const char *file, int line, const char *func, const char *format, | 64 | void 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, ...) \ |