From 60cb2c37201a453a76ea12e4d4b48f7b34ebef2c Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Fri, 30 May 2014 01:18:09 +0200 Subject: build: fix some compiler warnings Most of them catched on 32bit gcc and icc. disk-utils/fsck.cramfs.c: printf format type lib/boottime.c: unused variables misc-utils/cal.c: set but never used sys-utils/losetup.c: set but never used sys-utils/lscpu-dmi.c: defined but not used sys-utils/switch_root.c: comparison between signed and unsigned tests/helpers/test_sysinfo.c: printf format type --- lib/boottime.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/boottime.c') diff --git a/lib/boottime.c b/lib/boottime.c index 335570cc1..a2869a50b 100644 --- a/lib/boottime.c +++ b/lib/boottime.c @@ -9,8 +9,11 @@ int get_boot_time(struct timeval *boot_time) { +#ifdef CLOCK_BOOTTIME struct timespec hires_uptime; - struct timeval lores_uptime, now; + struct timeval lores_uptime; +#endif + struct timeval now; struct sysinfo info; if (gettimeofday(&now, NULL) != 0) { -- cgit v1.2.3-55-g7522