summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-01-29 16:46:46 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2012-01-29 16:46:46 +0100
commit6703816060c2cf4aaf9c82057ced31c3ba744346 (patch)
tree8707c00412f8a1efce3f9e834f65448028e26383
parenta3559250d48ccc3ef755183ebb3246cbbb442c0d (diff)
downloadstrace-6703816060c2cf4aaf9c82057ced31c3ba744346.tar.gz
Suppress compiler warning
* strace.c (trace): Frame potentially unused label with ifdef/endif. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--strace.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/strace.c b/strace.c
index 091114053..20a32b3c0 100644
--- a/strace.c
+++ b/strace.c
@@ -2729,6 +2729,10 @@ trace(void)
/* Ptrace event */
#ifdef USE_SEIZE
if (event == PTRACE_EVENT_STOP || event == PTRACE_EVENT_STOP1) {
+ /*
+ * PTRACE_INTERRUPT-stop or group-stop.
+ * PTRACE_INTERRUPT-stop has sig == SIGTRAP here.
+ */
if (sig == SIGSTOP
|| sig == SIGTSTP
|| sig == SIGTTIN
@@ -2762,7 +2766,9 @@ trace(void)
* (as opposed to "tracee received signal").
*/
stopped = (ptrace(PTRACE_GETSIGINFO, pid, 0, (long) &si) < 0);
+#ifdef USE_SEIZE
show_stopsig:
+#endif
if (cflag != CFLAG_ONLY_STATS
&& (qual_flags[sig] & QUAL_SIGNAL)) {
#if defined(PT_CR_IPSR) && defined(PT_CR_IIP)