Browse Source

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 <rusty@rustcorp.com.au>
pull/2938/head
Rusty Russell 5 years ago
committed by Christian Decker
parent
commit
359433f374
  1. 3
      lightningd/peer_control.c

3
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;

Loading…
Cancel
Save