bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/29348] gdb/build: format specifies type 'unsigned long' bu


From: lienze at sourceware dot org
Subject: [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long')
Date: Fri, 29 Jul 2022 12:46:59 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29348

--- Comment #4 from Enze Li <lienze at sourceware dot org> ---
It also appears on openbsd7.1 when building with following command,

$ ./configure --prefix=/home/lee/dev/binutils-gdb/build/
$ gmake

  CC       archive.lo
archive.c:195:56: error: format specifies type 'unsigned long' but the argument
has type 'bfd_size_type' (aka 'unsigned long long') [-Werror,-Wformat]
  snprintf (buf, sizeof (buf), "%-10" BFD_VMA_FMT "u", size);
                                ~~~~~~~~~~~~~~~~~~~~   ^~~~
                                %-10llu
archive.c:517:52: error: format specifies type 'unsigned long *' but the
argument has type 'bfd_size_type *' (aka 'unsigned long long *')
[-Werror,-Wformat]
  scan = sscanf (hdr.ar_size, "%" BFD_VMA_FMT "u", &parsed_size);
                               ~~~~~~~~~~~~~~~~~   ^~~~~~~~~~~~
                               %llu
2 errors generated.
gmake[4]: *** [Makefile:1752: archive.lo] Error 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]