summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2010-11-30 14:47:44 +0100
committerAmadeusz Sławiński <amade@asmblr.net>2015-06-10 23:38:55 +0200
commite86a6e3c398ff379343b0fe32de3bfbc34a8c0e4 (patch)
treedcff5d68fbf2af17021d42d3d5dde7bddf390c50
parent2ec8f6e27956656def707a7a94656769c08fa9df (diff)
downloadscreen-e86a6e3c398ff379343b0fe32de3bfbc34a8c0e4.tar.gz
fix warning with clang
fix warning with clang warning: data argument not used by format string
-rw-r--r--src/attacher.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/attacher.c b/src/attacher.c
index 8847d5d..c996c10 100644
--- a/src/attacher.c
+++ b/src/attacher.c
@@ -257,10 +257,17 @@ int how;
return 0;
if (quietflag)
eexit(10);
- Panic(0, SockMatch && *SockMatch ? "There is no screen to be %sed matching %s." : "There is no screen to be %sed.",
+ if (SockMatch && *SockMatch) {
+ Panic(0, "There is no screen to be %sed matching %s.",
xflag ? "attach" :
dflag ? "detach" :
"resum", SockMatch);
+ } else {
+ Panic(0, "There is no screen to be %sed.",
+ xflag ? "attach" :
+ dflag ? "detach" :
+ "resum");
+ }
/* NOTREACHED */
case 1:
break;