Silence this warning, which crashes when CONFIG_WERROR is active: cc1: warnings being treated as errors util-linux/mkfs_vfat.c: In function 'mkfs_vfat_main': util-linux/mkfs_vfat.c:468: error: large integer implicitly truncated to unsigned type
Signed-off-by: Marc Kleine-Budde <[email protected]> --- util-linux/mkfs_vfat.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/util-linux/mkfs_vfat.c b/util-linux/mkfs_vfat.c index de88a74..c48e517 100644 --- a/util-linux/mkfs_vfat.c +++ b/util-linux/mkfs_vfat.c @@ -174,11 +174,11 @@ void BUG_unsupported_field_size(void); #define STORE_LE(field, value) \ do { \ if (sizeof(field) == 4) \ - field = cpu_to_le32(value); \ + field = (typeof(field))cpu_to_le32(value); \ else if (sizeof(field) == 2) \ - field = cpu_to_le16(value); \ + field = (typeof(field))cpu_to_le16(value); \ else if (sizeof(field) == 1) \ - field = (value); \ + field = (typeof(field))(value); \ else \ BUG_unsupported_field_size(); \ } while (0) -- 1.6.5.2 _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
