]> git.ozlabs.org Git - ccan/commit
ccan/base64: fix GCC warning.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 6 Jul 2022 05:10:20 +0000 (14:40 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 6 Jul 2022 05:10:20 +0000 (14:40 +0930)
commit52b86922f8466e4641b55ba17eab56522b46e6f4
tree7e3e90498c0d1df28ab420a126c323f8fefe22ab
parent8448fd2813c4a8bdeff08c739129c877204341a7
ccan/base64: fix GCC warning.

```
ccan/ccan/base64/base64.c:146:71: error: argument 2 of type ‘char[3]’ with mismatched bound [-Werror=array-parameter=]
  146 | ssize_t base64_decode_tail_using_maps(const base64_maps_t *maps, char dest[3],
      |                                                                  ~~~~~^~~~~~~
In file included from ccan/ccan/base64/base64.c:2:
ccan/ccan/base64/base64.h:119:72: note: previously declared as ‘char *’
  119 | ssize_t base64_decode_tail_using_maps(const base64_maps_t *maps, char *dest,
      |                                                                  ~~~~~~^~~~
cc1: all warnings being treated as errors
make: *** [Makefile:817: ccan-base64.o] Error 1
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/base64/base64.h