summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Rantala <tt.rantala@gmail.com>2012-09-12 10:12:06 +0300
committerTommi Rantala <tt.rantala@gmail.com>2012-09-28 14:06:07 +0300
commit0c838c4d4406ddfcc38c9cbaa088ab60570d4cc0 (patch)
tree6fa79c5f60e6b82654878d1a45355f856afc716e
parent23fdda6a28d31abfcda42567cc455bd46a4fc0d0 (diff)
downloadlibunwind-0c838c4d4406ddfcc38c9cbaa088ab60570d4cc0.tar.gz
Annotate potentially unused variable in tests/Gtest-bt.c
tests/Gtest-bt.c: In function 'sighandler': tests/Gtest-bt.c:158:15: warning: unused variable 'uc' [-Wunused-variable]
-rw-r--r--tests/Gtest-bt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Gtest-bt.c b/tests/Gtest-bt.c
index 68eba92a..1bc3f4d6 100644
--- a/tests/Gtest-bt.c
+++ b/tests/Gtest-bt.c
@@ -25,6 +25,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>
@@ -164,9 +166,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);