From 7c0863f7858f9715af6ab6b82e768527d8bfd1c3 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 17 Jan 2019 10:07:01 +1030 Subject: [PATCH] plugins/pay: add comment on why we don't use an empty string plugins/pay.c:879:7: error: zero-length gnu_printf format string [-Werror=format-zero-length] Reported-by: @cdecker Signed-off-by: Rusty Russell --- plugins/pay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/pay.c b/plugins/pay.c index 30b614d8d..f39ec20ac 100644 --- a/plugins/pay.c +++ b/plugins/pay.c @@ -876,6 +876,7 @@ static struct command_result *handle_pay(struct command *cmd, /* Get capacities of local channels. */ return send_outreq(cmd, "listpeers", listpeers_done, forward_error, pc, + /* gcc doesn't like zero-length format strings! */ " "); }