summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-07-18 17:46:14 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-07-18 17:46:14 +0200
commiteccb01acfb327f1f6819c1f3851765049b156865 (patch)
tree6af4e570a1f255dc9e76edcedb778b333f3b3c9d
parent86db5dfb6d334e583ea4161191754522ce850eed (diff)
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.
-rw-r--r--src/libsystemd-terminal/subterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-terminal/subterm.c b/src/libsystemd-terminal/subterm.c
index 46ab6b4a1e..5cf3c2a73a 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");