1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-31 16:21:26 +03:00

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.
This commit is contained in:
David Herrmann 2014-07-18 17:46:14 +02:00
parent 86db5dfb6d
commit eccb01acfb

View File

@ -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");