From eccb01acfb327f1f6819c1f3851765049b156865 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Fri, 18 Jul 2014 17:46:14 +0200 Subject: [PATCH] terminal: suppress warning in subterm Empty format-strings are just fine if format-functions do more than printing. This is the case here, so suppress the "empty format-string" warning by using "%s" with an empty argument. --- src/libsystemd-terminal/subterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd-terminal/subterm.c b/src/libsystemd-terminal/subterm.c index 46ab6b4a1..5cf3c2a73 100644 --- a/src/libsystemd-terminal/subterm.c +++ b/src/libsystemd-terminal/subterm.c @@ -386,7 +386,7 @@ static void output_draw_frame(Output *o) { static void output_draw_menu(Output *o) { assert(o); - output_frame_printl(o, ""); + output_frame_printl(o, "%s", ""); output_frame_printl(o, " Menu: (the following keys are recognized)"); output_frame_printl(o, " q: quit"); output_frame_printl(o, " ^C: send ^C to the PTY"); -- 2.30.2