core-lightning/channeld
Rusty Russell a12e41a930 compiler: fix for -O3 errors.
CI revealed one:

```
cc plugins/libplugin-pay.c
plugins/libplugin-pay.c: In function ‘payment_getroute’:
plugins/libplugin-pay.c:888:17: error: ‘errstr’ may be used uninitialized [-Werror=maybe-uninitialized]
  888 |                 payment_fail(p, "%s", errstr);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
plugins/libplugin-pay.c:851:21: note: ‘errstr’ was declared here
  851 |         const char *errstr;
      |                     ^~~~~~
cc1: all warnings being treated as errors
```

My local compiler gave another:

```
channeld/channeld.c: In function ‘resume_splice_negotiation’:
channeld/channeld.c:3734:23: error: ‘final_tx’ may be used uninitialized [-Werror=maybe-uninitialized]
 3734 |                 msg = towire_channeld_splice_confirmed_signed(tmpctx, final_tx,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 3735 |                                                               chan_output_index);
      |                                                               ~~~~~~~~~~~~~~~~~~
channeld/channeld.c:3461:28: note: ‘final_tx’ was declared here
 3461 |         struct bitcoin_tx *final_tx;
      |                            ^~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:298: channeld/channeld.o] Error 1
```

So fix both.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-12-14 09:16:56 +10:30
..
test channeld: tell lightningd about local anchor for each commitment tx. 2023-10-27 11:19:56 +10:30
channeld_htlc.h channeld: remove dead HTLCs from htable and free them (eventually) 2023-01-20 14:04:08 -06:00
channeld_wire.csv splice: Reestablish when commit or sig sends fail 2023-11-20 07:35:22 +01:00
channeld.c compiler: fix for -O3 errors. 2023-12-14 09:16:56 +10:30
channeld.h channeld: simply exit if hsmd vanishes. 2022-02-08 11:15:52 +10:30
commit_tx.c channeld: have commit_tx tell is what output was the other's anchor. 2023-10-27 11:19:56 +10:30
commit_tx.h channeld: have commit_tx tell is what output was the other's anchor. 2023-10-27 11:19:56 +10:30
full_channel_error.h dusty-htlcs: enforce limit on dusty htlcs 2021-10-23 12:59:13 +02:00
full_channel.c channeld: tell lightningd about local anchor for each commitment tx. 2023-10-27 11:19:56 +10:30
full_channel.h channeld: tell lightningd about local anchor for each commitment tx. 2023-10-27 11:19:56 +10:30
inflight.c splice: Reestablish when commit or sig sends fail 2023-11-20 07:35:22 +01:00
inflight.h splice: Reestablish when commit or sig sends fail 2023-11-20 07:35:22 +01:00
Makefile channeld: Code to implement splicing 2023-07-31 21:00:22 +09:30
splice.c splice: Reestablish when commit or sig sends fail 2023-11-20 07:35:22 +01:00
splice.h splice: Reestablish when commit or sig sends fail 2023-11-20 07:35:22 +01:00
watchtower.c Support p2tr deposit addresses 2023-07-11 11:41:15 +09:30
watchtower.h hsmd: Add wallet index metadata to existing messages 2022-03-10 10:22:29 +10:30