From 296450a16c110c86c890ef98c2c0da403cf96876 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 16 Nov 2023 21:16:34 +0100 Subject: Silence compiler warnings --- b32.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'b32.c') diff --git a/b32.c b/b32.c index 1c50aa5..be8532f 100644 --- a/b32.c +++ b/b32.c @@ -2,6 +2,10 @@ #include #include +#include "b32.h" + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wsign-conversion" static const uint8_t ctov[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -20,6 +24,7 @@ static const uint8_t ctov[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, }; +#pragma GCC diagnostic pop bool b32toa(uint8_t *dst, const char *src, size_t len) -- cgit v1.2.3