diff --git a/pkg/sentry/platform/systrap/sysmsg/sighandler_amd64.c b/pkg/sentry/platform/systrap/sysmsg/sighandler_amd64.c index aa4aca9dd..1161f89ad 100644 --- a/pkg/sentry/platform/systrap/sysmsg/sighandler_amd64.c +++ b/pkg/sentry/platform/systrap/sysmsg/sighandler_amd64.c @@ -385,7 +385,8 @@ void __syshandler() { void asm_restore_state(); // On x86 restore_state jumps straight to user code and does not return. -void restore_state(struct sysmsg *sysmsg, struct thread_context *ctx, void *) { +void restore_state(struct sysmsg *sysmsg, struct thread_context *ctx, + void *unused) { set_fsbase(&ctx->ptregs); asm_restore_state(); }