karelzak/util-linux — pull request #91 by rudimeier (2014-05-29 23:53:30+00:00)
Title: build: fix some compiler warnings

Don't know whether you would fix all of them like this.

Some additional notes:
* sys-utils/losetup.c: "set but never used"
... maybe a good motivation to give some love to "losetup --verbose"

* sys-utils/switch_root.c: "comparison between signed and unsigned"
... could be generally fixed include/statfs_magic.h for a better future

* there is a one more serious warning on big endian systems but I don't know how this could happen:

libblkid/src/superblocks/zfs.c: In function 'probe_zfs':
libblkid/src/superblocks/zfs.c:214:27: warning: 'ub_offset' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (blkid_probe_set_magic(pr, ub_offset,
^