mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 01:32:34 +01:00
Compiler can't tell that we always set have_state[PAY_FLOW_FAILED_FINAL] when we set this: ``` plugins/renepay/payment.c: In function ‘payment_reconsider’: plugins/renepay/payment.c:287:25: error: ‘final_error’ may be used uninitialized [-Werror=maybe-uninitialized] 287 | payment_fail(payment, final_error, "%s", final_msg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ plugins/renepay/payment.c:194:30: note: ‘final_error’ was declared here 194 | enum jsonrpc_errcode final_error, ecode; | ^~~~~~~~~~~ plugins/renepay/payment.c:287:25: error: ‘final_msg’ may be used uninitialized [-Werror=maybe-uninitialized] 287 | payment_fail(payment, final_error, "%s", final_msg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ plugins/renepay/payment.c:195:21: note: ‘final_msg’ was declared here 195 | const char *final_msg; | ^~~~~~~~~ ``` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> |
||
---|---|---|
.. | ||
test | ||
debug.c | ||
debug.h | ||
dijkstra.c | ||
dijkstra.h | ||
flow.c | ||
flow.h | ||
Makefile | ||
mcf.c | ||
mcf.h | ||
pay.c | ||
pay.h | ||
pay_flow.c | ||
pay_flow.h | ||
payment.c | ||
payment.h | ||
uncertainty_network.c | ||
uncertainty_network.h |