From d4ca48a5132f311d453485220de7509ee18f2688 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Wed, 6 Nov 2019 15:46:19 +1000 Subject: [PATCH] Fix unused parameter when XMALLOC doesn't use params --- src/wolfio.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wolfio.c b/src/wolfio.c index 561c2e47f..634cfc735 100644 --- a/src/wolfio.c +++ b/src/wolfio.c @@ -964,8 +964,8 @@ int wolfIO_DecodeUrl(const char* url, int urlSz, char* outName, char* outPath, return result; } -static int wolfIO_HttpProcessResponseBuf(int sfd, byte **recvBuf, int* recvBufSz, - int chunkSz, char* start, int len, int dynType, void* heap) +static int wolfIO_HttpProcessResponseBuf(int sfd, byte **recvBuf, + int* recvBufSz, int chunkSz, char* start, int len, int dynType, void* heap) { byte* newRecvBuf = NULL; int newRecvSz = *recvBufSz + chunkSz; @@ -976,6 +976,9 @@ static int wolfIO_HttpProcessResponseBuf(int sfd, byte **recvBuf, int* recvBufSz printf("HTTP Chunk %d->%d\n", *recvBufSz, chunkSz); #endif + (void)heap; + (void)dynType; + newRecvBuf = (byte*)XMALLOC(newRecvSz, heap, dynType); if (newRecvBuf == NULL) { WOLFSSL_MSG("wolfIO_HttpProcessResponseBuf malloc failed");