]> git.ozlabs.org Git - ccan/commit
tcon: fix warning when it's used with NULL on some gcc versions.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 9 Jan 2023 02:06:22 +0000 (12:36 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 27 Apr 2023 01:14:40 +0000 (10:44 +0930)
commit5c6a0ad7a9260c4cb02c707a0d813d17b23d9289
treecc6e07696238e5eac633b8caacef3daa249bef14
parent3942778bb3f61cb580dd088c8449ca6dfdf6b7bc
tcon: fix warning when it's used with NULL on some gcc versions.

Seems to be happening with gcc 12.2.0-3ubuntu1:

```
lightningd/jsonrpc.c: In function ‘destroy_json_command’:
lightningd/jsonrpc.c:1180:63: error: the comparison will always evaluate as ‘false’ for the address of ‘canary’ will never be NULL [-Werror=address]
lightningd/jsonrpc.c:108:53: note: ‘canary’ declared here
```

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