Skip to contentSkip to conversation

btrfs-progs compile warnings on i386

DISCUSSION Russell Coker 2 participants 2 messages May 7, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

https://git.kernel.org/cgit/linux/kernel/git/mason/btrfs-progs.git/

I've just tried building btrfs-progs on i386 with a git pull from a few minutes ago and I got the following warnings:

[CC] btrfs-list.o
btrfs-list.c: In function 'filter_by_parent':
btrfs-list.c:1183:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
[CC] cmds-subvolume.o
cmds-subvolume.c: In function 'cmd_subvol_show':
cmds-subvolume.c:917:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
[CC] cmds-restore.o
cmds-restore.c: In function 'decompress_lzo':
cmds-restore.c:116:10: warning: passing argument 4 of 'lzo1x_decompress_safe' from incompatible pointer type [enabled by default]
In file included from cmds-restore.c:31:0:
/usr/include/lzo/lzo1x.h:77:1: note: expected 'lzo_uint *' but argument is of type 'size_t *'

I've compiled it on Debian/Wheezy on i386 and AMD64. On AMD64 there are no warnings but the above warnings appear on i386.

Signature · 2 lines
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/
#1 lore raw

Hello,

Thanks for reporting,
i will deal with this issue.

Thanks,
Wang

Quoted 24 lines

https://git.kernel.org/cgit/linux/kernel/git/mason/btrfs-progs.git/

I've just tried building btrfs-progs on i386 with a git pull from a few minutes ago and I got the following warnings:

[CC] btrfs-list.o
btrfs-list.c: In function 'filter_by_parent':
btrfs-list.c:1183:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
[CC] cmds-subvolume.o
cmds-subvolume.c: In function 'cmd_subvol_show':
cmds-subvolume.c:917:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
[CC] cmds-restore.o
cmds-restore.c: In function 'decompress_lzo':
cmds-restore.c:116:10: warning: passing argument 4 of 'lzo1x_decompress_safe' from incompatible pointer type [enabled by default]
In file included from cmds-restore.c:31:0:
/usr/include/lzo/lzo1x.h:77:1: note: expected 'lzo_uint *' but argument is of type 'size_t *'

I've compiled it on Debian/Wheezy on i386 and AMD64. On AMD64 there are no warnings but the above warnings appear on i386.