Whamcloud - gitweb
build: fix LLVM compiler warnings
authorAndreas Dilger <adilger@dilger.ca>
Tue, 18 Feb 2014 17:12:32 +0000 (12:12 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 18 Feb 2014 17:17:53 +0000 (12:17 -0500)
commit4d46e6c737947b336fd412f43c060955b07bd319
treea478de51dbd2f358084b5a87e5a7884956b54550
parentc7c3775443ecd01ade5500e09191c5c4e94c2b56
build: fix LLVM compiler warnings

Fix a number of non-literal string format warnings from LLVM due
to the use of _() that were not fixed in commit 45ff69ffeb.

Fix mismatched int vs. __u64 format warnings in blkmap64_rb.c.
There were also some comparisons of __u64 start or count <= 0.
Change them to be comparisons == 0, or start + count overflow.

Fix operator precedence warning for (value & (value - 1) != 0)
introduced in 11d1116a7c0b.  It seems "&" is lower precedence
than "!=", so the above didn't fail for power-of-two values,
but only odd values.  Fortunately, either s_desc_size nor
s_inode_size is valid if odd.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/quota.c
e2fsck/super.c
lib/ext2fs/blkmap64_rb.c
misc/e2image.c
misc/mk_hugefiles.c
misc/tune2fs.c