Skip to content

Commit

Permalink
lightningd: convert the compiler-wanted-init FIXME.
Browse files Browse the repository at this point in the history
I'm sure there are others, but this was the only one which showed up
in grep.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell authored and cdecker committed Aug 2, 2019
1 parent 79345cc commit 359433f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lightningd/peer_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 359433f

Please sign in to comment.