From: Emmanuel Blot Date: Mon, 19 Jan 2015 13:29:44 +0000 (+0100) Subject: Fix unused variable warnings X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=4f89addcc198bff2fc614da2f8f4a7beb4b6cb7d;p=minix.git Fix unused variable warnings Do not define variables that are not used in Minix builds Change-Id: I11d12e5e1de9fc359b71a7e7534fc8f09fac837d --- diff --git a/lib/libc/arch/arm/misc/arm_initfini.c b/lib/libc/arch/arm/misc/arm_initfini.c index b4c19f2ac..28109be89 100644 --- a/lib/libc/arch/arm/misc/arm_initfini.c +++ b/lib/libc/arch/arm/misc/arm_initfini.c @@ -58,7 +58,9 @@ void __section(".text.startup") _libc_aapcs_init(void) { if (!_libc_aapcs_initialized) { +#if !defined(__minix) size_t len = sizeof(_libc_arm_fpu_present); +#endif _libc_aapcs_initialized = true; #if !defined(__minix) (void)sysctlbyname("machdep.fpu_present", diff --git a/lib/libc/resolv/res_init.c b/lib/libc/resolv/res_init.c index 42370cc04..f3dfcced5 100644 --- a/lib/libc/resolv/res_init.c +++ b/lib/libc/resolv/res_init.c @@ -162,7 +162,9 @@ static uint32_t net_mask(struct in_addr); #endif static struct timespec __res_conf_time; +#if !defined(__minix) static const struct timespec ts = { 0, 0 }; +#endif /* * Resolver state default settings.