diff --git a/tests/Gtest-trace.c b/tests/Gtest-trace.c index 5145e657..9d43ce21 100644 --- a/tests/Gtest-trace.c +++ b/tests/Gtest-trace.c @@ -24,6 +24,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ # include "config.h" #endif +#include "compiler.h" + #include #if HAVE_EXECINFO_H # include @@ -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);