diff options
author | Karel Zak | 2011-06-08 12:27:03 +0200 |
---|---|---|
committer | Karel Zak | 2011-06-08 12:27:03 +0200 |
commit | 52019d889f526c21a97031d4dc4b0e1faab1b606 (patch) | |
tree | f44eb678760c905d71ba64943d9c5803991eb70e /hwclock/hwclock.c | |
parent | cytune: remove unused variable (diff) | |
download | kernel-qcow2-util-linux-52019d889f526c21a97031d4dc4b0e1faab1b606.tar.gz kernel-qcow2-util-linux-52019d889f526c21a97031d4dc4b0e1faab1b606.tar.xz kernel-qcow2-util-linux-52019d889f526c21a97031d4dc4b0e1faab1b606.zip |
hwclock: remove unused variables
hwclock.c: In function ‘set_hardware_clock’:
hwclock.c:467:7: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
hwclock.c: In function ‘main’:
hwclock.c:1461:7: warning: variable ‘ARCconsole’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'hwclock/hwclock.c')
-rw-r--r-- | hwclock/hwclock.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c index 02b404e9d..68e76b896 100644 --- a/hwclock/hwclock.c +++ b/hwclock/hwclock.c @@ -464,7 +464,6 @@ set_hardware_clock(const time_t newtime, Set the Hardware Clock to the time <newtime>, in local time zone or UTC, according to <universal>. ----------------------------------------------------------------------------*/ - int err; struct tm new_broken_time; /* Time to which we will set Hardware Clock, in broken down format, in the time zone of caller's choice @@ -493,7 +492,7 @@ set_hardware_clock(const time_t newtime, write_date_to_file (&new_broken_time); new_broken_time.tm_year = 95 + ((new_broken_time.tm_year+1) & 3); } - err = ur->set_hardware_clock(&new_broken_time); + ur->set_hardware_clock(&new_broken_time); } } @@ -1458,9 +1457,10 @@ main(int argc, char **argv) { /* The options debug, badyear and epoch_option are global */ bool show, set, systohc, hctosys, systz, adjust, getepoch, setepoch, predict; bool utc, testing, local_opt, noadjfile, directisa; - bool ARCconsole, Jensen, SRM, funky_toy; char *date_opt; - +#ifdef __alpha__ + bool ARCconsole, Jensen, SRM, funky_toy; +#endif /* Remember what time we were invoked */ gettimeofday(&startup_time, NULL); @@ -1488,7 +1488,9 @@ main(int argc, char **argv) { /* Set option defaults */ show = set = systohc = hctosys = systz = adjust = noadjfile = predict = FALSE; getepoch = setepoch = utc = local_opt = testing = debug = FALSE; +#ifdef __alpha__ ARCconsole = Jensen = SRM = funky_toy = directisa = badyear = FALSE; +#endif date_opt = NULL; while ((c = getopt_long (argc, argv, "?hvVDarsuwAJSFf:", longopts, NULL)) |