chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86db5df
)
terminal: suppress warning in subterm
author
David Herrmann
<dh.herrmann@gmail.com>
Fri, 18 Jul 2014 15:46:14 +0000
(17:46 +0200)
committer
David Herrmann
<dh.herrmann@gmail.com>
Fri, 18 Jul 2014 15:46:14 +0000
(17:46 +0200)
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
patch
|
blob
|
history
diff --git
a/src/libsystemd-terminal/subterm.c
b/src/libsystemd-terminal/subterm.c
index 46ab6b4a1e7c85ecd96e1b0cc9adc9cba244a5dc..5cf3c2a73a56b51aeeb431e09af8880ef91d5c9f 100644
(file)
--- 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");