diff options
author | Ruediger Meier | 2014-05-30 01:18:09 +0200 |
---|---|---|
committer | Ruediger Meier | 2014-05-30 01:18:09 +0200 |
commit | 60cb2c37201a453a76ea12e4d4b48f7b34ebef2c (patch) | |
tree | 85ffda2c6658fb51db06b8363feecd4e39cb3879 /disk-utils/fsck.cramfs.c | |
parent | lslogins: fix pretty-print columns (diff) | |
download | kernel-qcow2-util-linux-60cb2c37201a453a76ea12e4d4b48f7b34ebef2c.tar.gz kernel-qcow2-util-linux-60cb2c37201a453a76ea12e4d4b48f7b34ebef2c.tar.xz kernel-qcow2-util-linux-60cb2c37201a453a76ea12e4d4b48f7b34ebef2c.zip |
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
Diffstat (limited to 'disk-utils/fsck.cramfs.c')
-rw-r--r-- | disk-utils/fsck.cramfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/disk-utils/fsck.cramfs.c b/disk-utils/fsck.cramfs.c index d4967dccb..6adfa3334 100644 --- a/disk-utils/fsck.cramfs.c +++ b/disk-utils/fsck.cramfs.c @@ -618,11 +618,11 @@ static void test_fs(int start) if (start_data != ~0UL) { if (start_data < (sizeof(struct cramfs_super) + start)) errx(FSCK_EX_UNCORRECTED, - _("directory data start (%ld) < sizeof(struct cramfs_super) + start (%ld)"), + _("directory data start (%lu) < sizeof(struct cramfs_super) + start (%zu)"), start_data, sizeof(struct cramfs_super) + start); if (end_dir != start_data) errx(FSCK_EX_UNCORRECTED, - _("directory data end (%ld) != file data start (%ld)"), + _("directory data end (%lu) != file data start (%lu)"), end_dir, start_data); } if (super.flags & CRAMFS_FLAG_FSID_VERSION_2) |