From 359433f374472a6128993bbaace2c1c7c62ee107 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 1 Aug 2019 11:09:17 +0930 Subject: [PATCH] lightningd: convert the compiler-wanted-init FIXME. I'm sure there are others, but this was the only one which showed up in grep. Signed-off-by: Rusty Russell --- lightningd/peer_control.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index bfb3476bd..80fdaf369 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -1223,8 +1223,7 @@ static struct command_result *json_close(struct command *cmd, { const jsmntok_t *idtok; struct peer *peer; - /* FIXME: gcc 7.3.0 thinks this might not be initialized. */ - struct channel *channel = NULL; + struct channel *channel COMPILER_WANTS_INIT("gcc 7.3.0 fails, 8.3 OK"); unsigned int *timeout; bool *force;