[Debichem-devel] Bug#748031: Return types of undo_get_undo_count differ in signedness

Michael Tautschnig mt at debian.org
Tue May 13 13:57:17 UTC 2014


Package: chemtool
Version: 1.6.14-1
Usertags: goto-cc

During a rebuild of all packages in a clean sid chroot (and cowbuilder+pbuilder)
the build failed with the following error. Please note that we use our research
compiler tool-chain (using tools from the cbmc package), which permits extended
reporting on type inconsistencies at link time.

[...]
gcc  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wl,-z,relro -Wl,--as-needed   -o chemtool main.o draw.o graph.o chemproc.o undo.o inout.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype    -lX11 -lm 

file undo.c line 315: error: conflicting function declarations "undo_get_undo_count"
old definition in module main file ct.h line 238
signed int ()
new definition in module undo file undo.c line 315
unsigned int (void)
make[3]: *** [chemtool] Error 64
make[3]: Leaving directory `/srv/jenkins-slave/workspace/sid-goto-cc-chemtool/chemtool-1.6.14'

The difference in return types will likely not result in observable errors as
long as the number of undo steps fits into a positive signed int. Yet adjusting
the declaration will ensure that the compiler can generate meaningful warnings.

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 859 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debichem-devel/attachments/20140513/154238df/attachment.sig>


More information about the Debichem-devel mailing list