From 4424b41c65c0d40d3e20c0e93b57e220fa19df0e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 3 Dec 2020 09:34:41 +1030 Subject: [PATCH] channeld: fix gcc warning on gcc 8.3.0 (Debian 8.3.0-6) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` channeld/channeld.c:237:2: error: ‘shutdown_status’ may be used uninitialized in this function [-Werror=maybe-uninitialized] ``` Reported-by: az0re on IRC Signed-off-by: Rusty Russell --- channeld/channeld.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/channeld/channeld.c b/channeld/channeld.c index c8662ae37..a59502de8 100644 --- a/channeld/channeld.c +++ b/channeld/channeld.c @@ -195,7 +195,8 @@ static void start_commit_timer(struct peer *peer); static void billboard_update(const struct peer *peer) { - const char *funding_status, *announce_status, *shutdown_status; + const char *funding_status, *announce_status, + *shutdown_status COMPILER_WANTS_INIT("gcc 8.3.0"); if (peer->funding_locked[LOCAL] && peer->funding_locked[REMOTE]) funding_status = "Funding transaction locked.";