summaryrefslogtreecommitdiff
path: root/radix-tree.c
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2014-12-19 14:13:09 +0800
committerDavid Sterba <dsterba@suse.cz>2014-12-19 15:04:50 +0100
commite363f6ba095a646dd6634939a43b0db17f34577f (patch)
treec4b3b619a6875b5db0e696ab4ce174d6fdc56df4 /radix-tree.c
parent040b3f11ba6b5555d793a9ef79ed4d9032d22370 (diff)
btrfs-progs: Fix a clang dead-judgement warning in disk-io.c.
When compiled with clang, the following warning is outputted. disk-io.c:1017:15: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (dev_size < 0) ~~~~~~~~ ^ ~ 1 warning generated. This is because dev_size is defined as unsigned type, but lseek() will return singed valued. So the judgement will always to false. Use temporary off_t return value to solve it. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'radix-tree.c')
0 files changed, 0 insertions, 0 deletions