From: Teemu Toivola Date: Sun, 16 Jun 2019 15:12:11 +0000 (+0300) Subject: fix bsd compiler warnings and errors X-Git-Tag: v2.3~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2dfcf9b804396d76a9159d7fac23eabd47dff57b;p=vnstat fix bsd compiler warnings and errors --- diff --git a/src/ifinfo.c b/src/ifinfo.c index 52f190c..11d51e3 100644 --- a/src/ifinfo.c +++ b/src/ifinfo.c @@ -172,7 +172,6 @@ int getiflist_linux(iflist **ifl, const int getspeed) #elif defined(BSD_VNSTAT) int getiflist_bsd(iflist **ifl, const int getspeed) { - char temp[64]; struct ifaddrs *ifap, *ifa; if (getifaddrs(&ifap) >= 0) { diff --git a/src/misc.c b/src/misc.c index 5d717e7..4f129db 100644 --- a/src/misc.c +++ b/src/misc.c @@ -1,4 +1,4 @@ -#if !defined(BSD_VNSTAT) +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__APPLE__) && !defined(__FreeBSD_kernel__) #if defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wreserved-id-macro"