1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-21 23:27:39 +01:00

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]
This commit is contained in:
Tommi Rantala 2012-09-12 10:35:28 +03:00
parent 0c838c4d44
commit 7673df21ff

View file

@ -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);