]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix unused variable warnings 56/2956/1
authorEmmanuel Blot <emmanuel.blot@free.fr>
Mon, 19 Jan 2015 13:29:44 +0000 (14:29 +0100)
committerLionel Sambuc <lionel@minix3.org>
Wed, 18 Mar 2015 06:49:03 +0000 (07:49 +0100)
Do not define variables that are not used in Minix builds

Change-Id: I11d12e5e1de9fc359b71a7e7534fc8f09fac837d

lib/libc/arch/arm/misc/arm_initfini.c
lib/libc/resolv/res_init.c

index b4c19f2ac191a1a3537db67bff10d74e83069a4d..28109be89f0e6e6dccdd01b6deaa3b55524a2361 100644 (file)
@@ -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",
index 42370cc0453601cec0a8c2c752a27cc939fa35fc..f3dfcced545518f5c24b5d55531afd78aa4d9ce4 100644 (file)
@@ -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.