From: David Herrmann Date: Fri, 18 Jul 2014 15:46:14 +0000 (+0200) Subject: terminal: suppress warning in subterm X-Git-Tag: v216~499 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=eccb01acfb327f1f6819c1f3851765049b156865;ds=sidebyside 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. --- 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");