diff options
author | Tommi Rantala <tt.rantala@gmail.com> | 2012-09-12 10:35:28 +0300 |
---|---|---|
committer | Tommi Rantala <tt.rantala@gmail.com> | 2012-09-28 14:06:07 +0300 |
commit | 7673df21ffea216bcdee9efc551cfc4462ea35e9 (patch) | |
tree | a794c0ee86ddb9243be71c6ecd17afbf8191823f /tests | |
parent | 0c838c4d4406ddfcc38c9cbaa088ab60570d4cc0 (diff) | |
download | libunwind-7673df21ffea216bcdee9efc551cfc4462ea35e9.tar.gz |
Annotate potentially unused variable in tests/Gtest-trace.c
tests/Gtest-trace.c: In function 'sighandler':
tests/Gtest-trace.c:179:15: warning: unused variable 'uc' [-Wunused-variable]
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Gtest-trace.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Gtest-trace.c b/tests/Gtest-trace.c index 5145e657..9d43ce21 100644 --- a/tests/Gtest-trace.c +++ b/tests/Gtest-trace.c @@ -24,6 +24,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ # include "config.h" #endif +#include "compiler.h" + #include <errno.h> #if HAVE_EXECINFO_H # include <execinfo.h> @@ -176,9 +178,11 @@ bar (long v) void sighandler (int signal, void *siginfo __attribute__((unused)), void *context) { - ucontext_t *uc = context; + ucontext_t *uc UNUSED; int sp; + uc = context; + if (verbose) { printf ("sighandler: got signal %d, sp=%p", signal, &sp); |