diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-11-19 11:31:34 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-11-19 11:32:26 -0500 |
commit | a5adb8f3b40184cfe8f0bfd362ba1d37d780d62f (patch) | |
tree | 85ec122536becc355df7a85907540d54917b428e /bfd/ChangeLog | |
parent | 70125a45e426167957fc5c5255e7a1e381d688f9 (diff) | |
download | gdb-a5adb8f3b40184cfe8f0bfd362ba1d37d780d62f.zip gdb-a5adb8f3b40184cfe8f0bfd362ba1d37d780d62f.tar.gz gdb-a5adb8f3b40184cfe8f0bfd362ba1d37d780d62f.tar.bz2 |
gdb: fix format string warnings in f-lang.c
I get a bunch of these warnings when compiling for i386 (32-bit):
CXX f-lang.o
/home/simark/src/binutils-gdb/gdb/f-lang.c: In function 'value* fortran_value_subarray(value*, expression*, int*, int, noside)':
/home/simark/src/binutils-gdb/gdb/f-lang.c:453:48: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'LONGEST' {aka 'long long int'} [-Werror=format=]
453 | debug_printf ("| | |-> Low bound: %ld\n", lb);
| ~~^ ~~
| | |
| | LONGEST {aka long long int}
| long int
| %lld
Fix them by using plongest/pulongest.
gdb/ChangeLog:
* f-lang.c (fortran_value_subarray): Use plongest/pulongest.
Change-Id: I666ead5593653d5a1a3dab2ffdc72942c928c7d2
Diffstat (limited to 'bfd/ChangeLog')
0 files changed, 0 insertions, 0 deletions