compile warnings: differ in signedness & declared with attribute warn_unused_result

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

when I compile cryptsetup 1.0.6-pre2 for Fedora, there are several compile
warnings. At least the "differ in signedness" errors could be easily
avoided and I would provide a patch, but I am not sure, whether or not the
arguments should be signed or unsigned. Maybe someone who knows this better
can tell me.

Regards,
Till


gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I../lib -I
sha -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -MT
libluks_la-af.lo -MD -MP -MF .deps/libluks_la-af.Tpo -c
af.c  -fPIC -DPIC -o .libs/libluks_la-af.o
af.c: In function 'AF_split':
af.c:90: warning: pointer targets in passing argument 1 of 'diffuse' differ
in signedness
af.c:90: warning: pointer targets in passing argument 2 of 'diffuse' differ
in signedness
af.c: In function 'AF_merge':
af.c:110: warning: pointer targets in passing argument 1 of 'diffuse' differ
in signedness
af.c:110: warning: pointer targets in passing argument 2 of 'diffuse' differ
in signedness
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../luks -DDATADIR=\"/usr/share\" -DLIBDIR=\"/lib64\" -DPREFIX=\"/usr\" -DSYSCONFDIR=\"/etc\" -DVERSION=\"1.0.6-pre2\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILTIN_LIBDEVMAPPER -DBUILTIN_GCRYPT -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -MT
setup.lo -MD -MP -MF .deps/setup.Tpo -c
setup.c  -fPIC -DPIC -o .libs/setup.o
utils.c: In function 'set_error_va':
utils.c:35: warning: ignoring return value of 'vasprintf', declared with
attribute warn_unused_result
utils.c: In function 'interactive_pass':
utils.c:315: warning: ignoring return value of 'write', declared with
attribute warn_unused_result
utils.c:325: warning: ignoring return value of 'write', declared with
attribute warn_unused_result
setup.c: In function 'logger':
setup.c:34: warning: ignoring return value of 'vasprintf', declared with
attribute warn_unused_result
setup.c: In function '__crypt_create_device':
setup.c:291: warning: ignoring return value of 'asprintf', declared with
attribute warn_unused_result
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../luks -DDATADIR=\"/usr/share\" -DLIBDIR=\"/lib64\" -DPREFIX=\"/usr\" -DSYSCONFDIR=\"/etc\" -DVERSION=\"1.0.6-pre2\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILTIN_LIBDEVMAPPER -DBUILTIN_GCRYPT -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -MT
libdevmapper.lo -MD -MP -MF .deps/libdevmapper.Tpo -c
libdevmapper.c  -fPIC -DPIC -o .libs/libdevmapper.o
setup.c: In function '__crypt_luks_open':
setup.c:495: warning: ignoring return value of 'asprintf', declared with
attribute warn_unused_result
setup.c: In function '__crypt_luks_add_key':
setup.c:577: warning: pointer targets in passing argument 3 of 'get_key'
differ in signedness
setup.c:591: warning: pointer targets in passing argument 3 of 'get_key'
differ in signedness
setup.c: In function 'luks_remove_helper':
setup.c:624: warning: pointer targets in passing argument 3 of 'get_key'
differ in signedness
setup.c:647: warning: pointer targets in passing argument 3 of 'get_key'
differ in signedness
libdevmapper.c: In function 'run_udevsettle':
libdevmapper.c:25: warning: ignoring return value of 'system', declared with
attribute warn_unused_result


---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux