From 1b170c85bbae90887fa9a6d088c4513f25b90907 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 15 Dec 2016 11:41:09 +1030 Subject: [PATCH] Revert "Fix -Wsometimes-uninitialized and -Wuninitialized" This reverts commit ff9cdda4faf47362ba92f17b99f6f3a6c7768d98. These are real bugs, so I prefer to fix them explicitly. Signed-off-by: Rusty Russell --- daemon/peer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/peer.c b/daemon/peer.c index 3156795fc..12f005c22 100644 --- a/daemon/peer.c +++ b/daemon/peer.c @@ -467,7 +467,7 @@ static bool peer_received_unexpected_pkt(struct peer *peer, const Pkt *pkt, const char *where) { const char *p; - Pkt *err = NULL; + Pkt *err; log_unusual(peer->log, "%s: received unexpected pkt %u (%s) in %s", where, pkt->pkt_case, pkt_name(pkt->pkt_case), @@ -4120,7 +4120,7 @@ static enum watch_result anchor_spent(struct peer *peer, enum state newstate; struct htlc_map_iter it; struct htlc *h; - u64 commit_num = 0; + u64 commit_num; assert(input_num < tx->input_count);