mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
ccan: update to fix recent gcc "comparison will always evaluate as 'false'" warning
``` 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>
This commit is contained in:
parent
1f21796454
commit
288f5df8d1
2 changed files with 2 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
|||
CCAN imported from http://ccodearchive.net.
|
||||
|
||||
CCAN version: init-2548-gab87e56b
|
||||
CCAN version: init-2549-gba79e21b
|
||||
|
|
|
@ -147,8 +147,7 @@
|
|||
* It evaluates to @x so you can chain it.
|
||||
*/
|
||||
#define tcon_check_ptr(x, canary, expr) \
|
||||
(sizeof(&(x)->_tcon[0].canary == (expr)) ? (x) : (x))
|
||||
|
||||
(sizeof((expr) ? (expr) : &(x)->_tcon[0].canary) ? (x) : (x))
|
||||
|
||||
/**
|
||||
* tcon_type - the type within a container (or void *)
|
||||
|
|
Loading…
Add table
Reference in a new issue