From ec4909b21ca7feb8cb1ebac91da75fbe1816c82e Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Mon, 3 Jun 2024 14:56:51 -0400 Subject: [PATCH] WOLFSSH_UNUSED --- wolfssh/test.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wolfssh/test.h b/wolfssh/test.h index 1414538e..11e7b94e 100644 --- a/wolfssh/test.h +++ b/wolfssh/test.h @@ -548,6 +548,8 @@ static INLINE void build_addr(SOCKADDR_IN_T* addr, const char* peer, static INLINE void tcp_socket(WS_SOCKET_T* sockFd, int targetProtocol) { + /* targetProtocol is only used if none of these platforms are defined. */ + WOLFSSH_UNUSED(targetProtocol); #ifdef MICROCHIP_MPLAB_HARMONY /* creates socket in listen or connect */ *sockFd = 0;