From: Roy Marples Date: Mon, 21 Jan 2008 21:52:20 +0000 (+0000) Subject: Fix compile on Linux where. X-Git-Tag: v3.2.3~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb8d2261b8cbe1fe5936ccdc0ad7548d79485267;p=thirdparty%2Fdhcpcd.git Fix compile on Linux where. --- diff --git a/common.h b/common.h index 3dbae4b8..61732bb6 100644 --- a/common.h +++ b/common.h @@ -33,6 +33,10 @@ #include #include +#if __GNUC__ > 2 || defined(__INTEL_COMPILER) +# define _unused __attribute__((__unused__)) +#endif + #define HAVE_STRLCPY /* Only GLIBC doesn't support strlcpy */ #ifdef __GLIBC__ diff --git a/interface.c b/interface.c index e39f7fa4..158855fe 100644 --- a/interface.c +++ b/interface.c @@ -454,7 +454,7 @@ int set_mtu (const char *ifname, short int mtu) static void log_route (struct in_addr destination, struct in_addr netmask, struct in_addr gateway, - __unused int metric, + _unused int metric, int change, int del) { char *dstd = xstrdup (inet_ntoa (destination));