From c233fc5063023a0b178ed800ea87274c899065ea Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 26 May 2019 13:48:16 +0930 Subject: [PATCH] gossipd: fix spurious unused error with gcc-9 -O3. Signed-off-by: Rusty Russell --- gossipd/gossip_store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossipd/gossip_store.c b/gossipd/gossip_store.c index ad9a9489e..871dc008a 100644 --- a/gossipd/gossip_store.c +++ b/gossipd/gossip_store.c @@ -529,7 +529,7 @@ void gossip_store_load(struct routing_state *rstate, struct gossip_store *gs) size_t stats[] = {0, 0, 0, 0}; struct timeabs start = time_now(); const u8 *chan_ann = NULL; - u64 chan_ann_off; + u64 chan_ann_off = 0; /* Spurious gcc-9 (Ubuntu 9-20190402-1ubuntu1) 9.0.1 20190402 (experimental) warning */ gs->writable = false; while (pread(gs->fd, hdr, sizeof(hdr), gs->len) == sizeof(hdr)) {