From a68524ee4a7cbf120382a7b678a7820f07b10bf5 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Fri, 1 May 2020 00:36:38 +0200 Subject: Fix various warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - unused variable ‘walk’ [-Wunused-variable] - implicit declaration of built-in function ‘free’ [-Wimplicit-function-declaration] - initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] - variable 'ram_used' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]. This is actually easily reproducible by specifying `memory_used_method = "XXX"`. - comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] (for `exponent`) --- include/i3status.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/i3status.h') diff --git a/include/i3status.h b/include/i3status.h index e0dff2b..6e5278f 100644 --- a/include/i3status.h +++ b/include/i3status.h @@ -206,9 +206,9 @@ char *trim(const char *s); /* src/format_placeholders.c */ typedef struct { /* The placeholder to be replaced, e.g., "%title". */ - char *name; + const char *name; /* The value this placeholder should be replaced with. */ - char *value; + const char *value; } placeholder_t; char *format_placeholders(const char *format, placeholder_t *placeholders, int num); -- cgit v1.2.3