From f2edaee5b63a20d15578a71f1c5fb8e0fdb2feab Mon Sep 17 00:00:00 2001 From: TuxSH Date: Mon, 3 Feb 2020 02:16:53 +0000 Subject: [PATCH] thermosphere: suppress potential unused variable warnings --- thermosphere/src/exceptions.c | 1 + thermosphere/src/main.c | 1 + 2 files changed, 2 insertions(+) diff --git a/thermosphere/src/exceptions.c b/thermosphere/src/exceptions.c index 5b17a3d69..ae1bccb05 100644 --- a/thermosphere/src/exceptions.c +++ b/thermosphere/src/exceptions.c @@ -202,6 +202,7 @@ void handleLowerElSyncException(ExceptionStackFrame *frame) void handleSameElSyncException(ExceptionStackFrame *frame) { ExceptionSyndromeRegister esr = frame->esr_el2; + (void)esr; DEBUG("Same EL sync exception on core %x, EC = 0x%02llx IL=%llu ISS=0x%06llx\n", currentCoreCtx->coreId, (u64)esr.ec, esr.il, esr.iss); dumpStackFrame(frame, true); } diff --git a/thermosphere/src/main.c b/thermosphere/src/main.c index b6c3f51d0..5eaeecd5e 100644 --- a/thermosphere/src/main.c +++ b/thermosphere/src/main.c @@ -77,6 +77,7 @@ void testProcessDataCallback(TransportInterface *iface, void *p, size_t sz) (void)sz; debugManagerUnpauseCores(BIT(0)); TestCtx *ctx = (TestCtx *)p; + (void)ctx; DEBUG("EL2 [core %u]: you typed: %s\n", currentCoreCtx->coreId, ctx->buf); }