diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-16 21:16:34 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-16 21:16:34 +0100 |
commit | 296450a16c110c86c890ef98c2c0da403cf96876 (patch) | |
tree | 8da8544da2713c1361a1fa5716afee9cb0d5038f /b32.c | |
parent | d0acd88463bfe912577a0c0054b948b685384f39 (diff) |
Silence compiler warnings
Diffstat (limited to 'b32.c')
-rw-r--r-- | b32.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |