[PATCH 1/3] Silence a compiler warning with unused variable ptrace_opts_set
Hans-Christian Egtvedt
hans-christian.egtvedt at atmel.com
Tue Feb 24 13:58:40 UTC 2009
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt at atmel.com>
---
strace.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/strace.c b/strace.c
index d43b5b2..97fa41d 100644
--- a/strace.c
+++ b/strace.c
@@ -108,7 +108,9 @@ int not_failing_only = 0;
static int exit_code = 0;
static int strace_child = 0;
static int ptrace_stop_sig = SIGTRAP;
+#if defined LINUX && (defined PTRACE_SETOPTIONS || defined PT_SETOPTIONS)
static bool ptrace_opts_set;
+#endif
static char *username = NULL;
uid_t run_uid;
--
1.5.6.3
More information about the Strace-devel
mailing list