mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +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:
@@ -1,3 +1,3 @@
|
|||||||
CCAN imported from http://ccodearchive.net.
|
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.
|
* It evaluates to @x so you can chain it.
|
||||||
*/
|
*/
|
||||||
#define tcon_check_ptr(x, canary, expr) \
|
#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 *)
|
* tcon_type - the type within a container (or void *)
|
||||||
|
|||||||
Reference in New Issue
Block a user