From 826724262af35e192b25dc6519912646158adbbf Mon Sep 17 00:00:00 2001 From: Welch Date: Wed, 27 Nov 2024 05:04:02 -0700 Subject: [PATCH] Address unused parameter and unused argument warnings. --- osal/win32/osal.c | 5 +++-- oshw/win32/nicdrv.c | 3 +-- oshw/win32/oshw.c | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/osal/win32/osal.c b/osal/win32/osal.c index 8665c4f6..d9572cad 100644 --- a/osal/win32/osal.c +++ b/osal/win32/osal.c @@ -12,9 +12,10 @@ static double qpc2usec; #define USECS_PER_SEC 1000000 -int osal_getrelativetime(struct timeval *tv, struct timezone *tz) +static int osal_getrelativetime(struct timeval *tv, struct timezone *tz) { int64_t wintime, usecs; + (void)tz; if(!sysfrequency) { timeBeginPeriod(1); @@ -33,7 +34,7 @@ int osal_gettimeofday(struct timeval *tv, struct timezone *tz) { FILETIME system_time; int64 system_time64, usecs; - + (void)tz; /* The offset variable is required to switch from Windows epoch (January 1, 1601) to * Unix epoch (January 1, 1970). Number of days between both epochs: 134.774 * diff --git a/oshw/win32/nicdrv.c b/oshw/win32/nicdrv.c index 9657f31c..96d2f0fb 100644 --- a/oshw/win32/nicdrv.c +++ b/oshw/win32/nicdrv.c @@ -89,10 +89,9 @@ static void ecx_clear_rxbufstat(int *rxbufstat) */ int ecx_setupnic(ecx_portt *port, const char *ifname, int secondary) { - int i, rval; + int i; pcap_t **psock; - rval = 0; if (secondary) { /* secondary port struct available? */ diff --git a/oshw/win32/oshw.c b/oshw/win32/oshw.c index c217baa9..247887ec 100644 --- a/oshw/win32/oshw.c +++ b/oshw/win32/oshw.c @@ -35,7 +35,6 @@ uint16 oshw_ntohs (uint16 network) ec_adaptert * oshw_find_adapters (void) { int i = 0; - int ret = 0; pcap_if_t *alldevs; pcap_if_t *d; ec_adaptert * adapter;