aboutsummaryrefslogtreecommitdiff
path: root/b32.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-16 21:16:34 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-16 21:16:34 +0100
commit296450a16c110c86c890ef98c2c0da403cf96876 (patch)
tree8da8544da2713c1361a1fa5716afee9cb0d5038f /b32.c
parentd0acd88463bfe912577a0c0054b948b685384f39 (diff)
Silence compiler warnings
Diffstat (limited to 'b32.c')
-rw-r--r--b32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/b32.c b/b32.c
index 1c50aa5..be8532f 100644
--- a/b32.c
+++ b/b32.c
@@ -2,6 +2,10 @@
#include <stddef.h>
#include <stdint.h>
+#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)