diff options
author | Ruediger Meier | 2017-06-12 01:59:36 +0200 |
---|---|---|
committer | Karel Zak | 2017-06-14 11:48:22 +0200 |
commit | 11e904f02cb1ec4e17e71b9925f35d5f7786e5fe (patch) | |
tree | ebeb6d742dd5226f9604223bf16a00f11f626f75 /text-utils/more.c | |
parent | misc: fix gcc-7 snprintf warnings -Wformat-truncation (diff) | |
download | kernel-qcow2-util-linux-11e904f02cb1ec4e17e71b9925f35d5f7786e5fe.tar.gz kernel-qcow2-util-linux-11e904f02cb1ec4e17e71b9925f35d5f7786e5fe.tar.xz kernel-qcow2-util-linux-11e904f02cb1ec4e17e71b9925f35d5f7786e5fe.zip |
libblkid: fix gcc-7 warning -Wint-in-bool-context
BLOCK_SIZE(sb) should be unsigned so that the left shift is defined.
This was the warning:
../libblkid/src/superblocks/exfat.c: In function 'probe_exfat':
../libblkid/src/superblocks/exfat.c:40:42: warning: '<<' in boolean context, did you mean '<' ? [-Wint-in-bool-context]
#define CLUSTER_SIZE(sb) (BLOCK_SIZE(sb) << (sb)->bpc_bits)
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../libblkid/src/superblocks/exfat.c:122:14: note: in expansion of macro 'CLUSTER_SIZE'
if (!sb || !CLUSTER_SIZE(sb))
^~~~~~~~~~~~
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'text-utils/more.c')
0 files changed, 0 insertions, 0 deletions