From ac40afe547d1cdc1182f487cf03e2a987427f632 Mon Sep 17 00:00:00 2001 From: Ben Winston Date: Thu, 6 Jun 2024 22:44:58 -0400 Subject: add -Wall and -Werror --- booki.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'booki.c') diff --git a/booki.c b/booki.c index 770ea00..606471b 100644 --- a/booki.c +++ b/booki.c @@ -482,9 +482,6 @@ const char* get_last_word(const char* str) { } long parse_int(char* current_pos, char** new_pos) { - char c; - char* value; - // strtol can handle leading spaces // will put the first non-digit into endptr char* endptr; @@ -515,8 +512,6 @@ long parse_int(char* current_pos, char** new_pos) { struct es parse_string(char* current_pos, char** new_pos) { // TODO handle failure - - char c; char* value; // leading spaces @@ -570,7 +565,7 @@ struct es parse_strings(char* current_pos, char** new_pos) { *new_pos = current_pos; return head; } else { - printf("error at %x\n", current_pos); + printf("error! +/- 10 context:\n---\n%.21s\n---\n", current_pos - 10); SEEK_UNTIL(current_pos, '\n'); *new_pos = current_pos; return default_es; -- cgit v1.2.3