diff options
Diffstat (limited to 'vppinfra/vppinfra/unix-formats.c')
-rw-r--r-- | vppinfra/vppinfra/unix-formats.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vppinfra/vppinfra/unix-formats.c b/vppinfra/vppinfra/unix-formats.c index f39a4be7428..a4c81ca2f70 100644 --- a/vppinfra/vppinfra/unix-formats.c +++ b/vppinfra/vppinfra/unix-formats.c @@ -884,10 +884,12 @@ u8 * format_signal (u8 * s, va_list * args) u8 * format_ucontext_pc (u8 * s, va_list * args) { - ucontext_t * uc = va_arg (*args, ucontext_t *); + ucontext_t * uc __attribute__((unused)); unsigned long * regs = 0; uword reg_no = 0; + uc = va_arg (*args, ucontext_t *); + #if defined (powerpc) regs = &uc->uc_mcontext.uc_regs->gregs[0]; #elif defined (powerpc64) |