[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.
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'), tromey at sourceware dot org, 2022/07/13
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'), amodra at gmail dot com, 2022/07/13
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'), lienze at sourceware dot org, 2022/07/14
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'),
lienze at sourceware dot org <=
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'), amodra at gmail dot com, 2022/07/30
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'), lienze at sourceware dot org, 2022/07/30
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'), amodra at gmail dot com, 2022/07/30
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'), lienze at sourceware dot org, 2022/07/30
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'), lienze at sourceware dot org, 2022/07/30
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'), amodra at gmail dot com, 2022/07/30
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'), amodra at gmail dot com, 2022/07/31
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'), lienze at sourceware dot org, 2022/07/31
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'), amodra at gmail dot com, 2022/07/31
- [Bug binutils/29348] gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long'), cvs-commit at gcc dot gnu.org, 2022/07/31