From 408b2903f2a5e6570157d8faae73836d7241f9e0 Mon Sep 17 00:00:00 2001 From: Dylan G <1565516+Helloman892@users.noreply.github.com> Date: Mon, 15 Jun 2020 23:11:28 +0100 Subject: [PATCH] Finally void-out textlen in the callbacks (no more compiler warnings) --- source/main.c | 1 + source/remote.c | 1 + 2 files changed, 2 insertions(+) diff --git a/source/main.c b/source/main.c index e544a96..aaaf17b 100644 --- a/source/main.c +++ b/source/main.c @@ -239,6 +239,7 @@ static void load_lists(Entry_List_s * lists) static SwkbdCallbackResult jump_menu_callback(void* entries_count, const char** ppMessage, const char* text, size_t textlen) { + (void)textlen; int typed_value = atoi(text); if(typed_value > *(int*)entries_count) { diff --git a/source/remote.c b/source/remote.c index 0c7440c..f5bd794 100644 --- a/source/remote.c +++ b/source/remote.c @@ -351,6 +351,7 @@ static void download_remote_entry(Entry_s * entry, EntryMode mode) static SwkbdCallbackResult jump_menu_callback(void* page_number, const char** ppMessage, const char* text, size_t textlen) { + (void)textlen; int typed_value = atoi(text); if(typed_value > *(json_int_t*)page_number) {