[Debian-med-packaging] Bug#913585: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'Sint32' {aka 'int'} [-Wformat=]

Mathieu Malaterre malat at debian.org
Mon Nov 12 18:09:00 GMT 2018


Source: dcmtk
Version: 3.6.3-1~exp1
Tags: fixed-upstream

It seems some of the build warnings have been fixed upstream, namely
those showing up on i386 (*), have been fixed by:

http://git.dcmtk.org/?p=dcmtk.git;a=commitdiff;h=386b588

...
/<<PKGBUILDDIR>>/dcmdata/libsrc/dcvrsl.cc: In member function 'virtual
void DcmSignedLong::print(std::ostream&, size_t, int, const char*,
size_t*)':
/<<PKGBUILDDIR>>/dcmdata/libsrc/dcvrsl.cc:192:41: warning: format
'%ld' expects argument of type 'long int', but argument 3 has type
'Sint32' {aka 'int'} [-Wformat=]
                         sprintf(buffer, "%ld", *sintVals);
                                         ^~~~~  ~~~~~~~~~
/<<PKGBUILDDIR>>/dcmdata/libsrc/dcvrsl.cc:194:41: warning: format
'%ld' expects argument of type 'long int', but argument 3 has type
'Sint32' {aka 'int'} [-Wformat=]
                         sprintf(buffer, "\\%ld", *sintVals);
                                         ^~~~~~~  ~~~~~~~~~
[...
<<PKGBUILDDIR>>/dcmdata/libsrc/dcvrul.cc: In member function 'virtual
void DcmUnsignedLong::print(std::ostream&, size_t, int, const char*,
size_t*)':
/<<PKGBUILDDIR>>/dcmdata/libsrc/dcvrul.cc:190:41: warning: format
'%lu' expects argument of type 'long unsigned int', but argument 3 has
type 'Uint32' {aka 'unsigned int'} [-Wformat=]
                         sprintf(buffer, "%lu", *uintVals);
                                         ^~~~~  ~~~~~~~~~
/<<PKGBUILDDIR>>/dcmdata/libsrc/dcvrul.cc:192:41: warning: format
'%lu' expects argument of type 'long unsigned int', but argument 3 has
type 'Uint32' {aka 'unsigned int'} [-Wformat=]
                         sprintf(buffer, "\\%lu", *uintVals);


ref:
https://buildd.debian.org/status/fetch.php?pkg=dcmtk&arch=i386&ver=3.6.3-1~exp1&stamp=1534157098&raw=0

Thanks



More information about the Debian-med-packaging mailing list