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:
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"
|
||||
#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);
|
||||
|
|
Loading…
Reference in a new issue