mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 15:47:37 +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:
parent
0c838c4d44
commit
7673df21ff
1 changed files with 5 additions and 1 deletions
|
@ -24,6 +24,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "compiler.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#if HAVE_EXECINFO_H
|
#if HAVE_EXECINFO_H
|
||||||
# include <execinfo.h>
|
# include <execinfo.h>
|
||||||
|
@ -176,9 +178,11 @@ bar (long v)
|
||||||
void
|
void
|
||||||
sighandler (int signal, void *siginfo __attribute__((unused)), void *context)
|
sighandler (int signal, void *siginfo __attribute__((unused)), void *context)
|
||||||
{
|
{
|
||||||
ucontext_t *uc = context;
|
ucontext_t *uc UNUSED;
|
||||||
int sp;
|
int sp;
|
||||||
|
|
||||||
|
uc = context;
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
{
|
{
|
||||||
printf ("sighandler: got signal %d, sp=%p", signal, &sp);
|
printf ("sighandler: got signal %d, sp=%p", signal, &sp);
|
||||||
|
|
Loading…
Reference in a new issue