summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Rantala <tt.rantala@gmail.com>2012-09-12 10:35:28 +0300
committerTommi Rantala <tt.rantala@gmail.com>2012-09-28 14:06:07 +0300
commit7673df21ffea216bcdee9efc551cfc4462ea35e9 (patch)
treea794c0ee86ddb9243be71c6ecd17afbf8191823f
parent0c838c4d4406ddfcc38c9cbaa088ab60570d4cc0 (diff)
downloadlibunwind-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]
-rw-r--r--tests/Gtest-trace.c6
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);