aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2020-08-07 19:42:34 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2020-08-07 19:42:34 +0000
commit7eb70a453b4ea797d9e85017c6deab6a7bc903a6 (patch)
tree265282027801e799b9a4a3afba074c868689b49e /config.c
parentMerge branch 'syslog' into master (diff)
Replace GCC "unused" and "format" attributes with portable macros
Diffstat (limited to 'config.c')
-rw-r--r--config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.c b/config.c
index 74d47db8..64caa4ab 100644
--- a/config.c
+++ b/config.c
@@ -20,6 +20,7 @@
#define LOG_ENABLE_DBG 0
#include "log.h"
#include "input.h"
+#include "macros.h"
#include "tokenize.h"
#include "util.h"
#include "wayland.h"
@@ -1111,7 +1112,7 @@ parse_config_file(FILE *f, struct config *conf, const char *path, bool errors_ar
/* Split up into key/value pair + trailing comment */
char *key_value = strtok(line, "#");
- char *comment __attribute__((unused)) = strtok(NULL, "\n");
+ char UNUSED *comment = strtok(NULL, "\n");
/* Check for new section */
if (key_value[0] == '[') {