Message ID | 20210705170814.4132997-1-siddhesh@sourceware.org |
---|---|
Headers | show |
Series | malloc hooks removal | expand |
32-bit builds broke... In file included from mtrace.c:22, from malloc-debug.c:84: mtrace-impl.c: In function 'tr_where': mtrace-impl.c:66:37: error: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'ptrdiff_t' {aka 'int'} [-Werror=format=] 66 | sprintf (buf, "(%s%c%lx)", info->dli_sname, sign, offset); | ~~^ ~~~~~~ | | | | long unsigned int ptrdiff_t {aka int} | %x cc1: all warnings being treated as errors
On 7/7/21 1:15 AM, DJ Delorie wrote: > > 32-bit builds broke... > > In file included from mtrace.c:22, > from malloc-debug.c:84: > mtrace-impl.c: In function 'tr_where': > mtrace-impl.c:66:37: error: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'ptrdiff_t' {aka 'int'} [-Werror=format=] > 66 | sprintf (buf, "(%s%c%lx)", info->dli_sname, sign, offset); > | ~~^ ~~~~~~ > | | | > | long unsigned int ptrdiff_t {aka int} > | %x > cc1: all warnings being treated as errors > Ugh, thanks for checking. I'll fix this locally and also test builds on a couple of different architectures this time. Siddhesh