Revert "Fix -Wsometimes-uninitialized and -Wuninitialized"

This reverts commit ff9cdda4fa.

These are real bugs, so I prefer to fix them explicitly.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2016-12-15 11:41:09 +10:30
parent 900ab78d46
commit 1b170c85bb

View File

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