gossipd: fix spurious unused error with gcc-9 -O3.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2019-05-26 13:48:16 +09:30
parent 9820d0664b
commit c233fc5063
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {