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

2021-02-20 Thread Sascha Steinbiss
I assume this bug is obsolete, right? We already have 3.6.5 in testing
and I do not see these warnings anymore in the i386 build logs.

Cheers
Sascha



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

2018-11-12 Thread Mathieu Malaterre
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

...
/<>/dcmdata/libsrc/dcvrsl.cc: In member function 'virtual
void DcmSignedLong::print(std::ostream&, size_t, int, const char*,
size_t*)':
/<>/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);
 ^  ~
/<>/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);
 ^~~  ~
[...
<>/dcmdata/libsrc/dcvrul.cc: In member function 'virtual
void DcmUnsignedLong::print(std::ostream&, size_t, int, const char*,
size_t*)':
/<>/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);
 ^  ~
/<>/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=i386=3.6.3-1~exp1=1534157098=0

Thanks