diff --git a/tests/regress.c b/tests/regress.c index e7dff779..333d9c75 100644 --- a/tests/regress.c +++ b/tests/regress.c @@ -291,8 +291,10 @@ static word32 BuildChannelDataPacket(word32 peerChannelId, const char* data, #ifdef WOLFSSH_FWD -static word32 BuildDirectTcpipExtra(const char* host, word32 hostPort, - const char* origin, word32 originPort, byte* out, word32 outSz) +/* Callers sit in separate conditional blocks; some builds have none. */ +static WS_MAYBE_UNUSED word32 BuildDirectTcpipExtra(const char* host, + word32 hostPort, const char* origin, word32 originPort, byte* out, + word32 outSz) { word32 idx = 0; @@ -304,8 +306,8 @@ static word32 BuildDirectTcpipExtra(const char* host, word32 hostPort, return idx; } -static word32 BuildGlobalRequestFwdPacket(const char* bindAddr, word32 bindPort, - int isCancel, byte wantReply, byte* out, word32 outSz) +static WS_MAYBE_UNUSED word32 BuildGlobalRequestFwdPacket(const char* bindAddr, + word32 bindPort, int isCancel, byte wantReply, byte* out, word32 outSz) { byte payload[256]; word32 idx = 0;