aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2026-03-15 20:12:22 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2026-03-15 20:23:40 -0400
commit07caff21f90c2f0c9b7b0e79b00b774be668594c (patch)
tree5b881e9e23c0e9e1eceaca7c4fcf9ff0feb5ca63 /gdb/python/python.c
parentd712202846ba44f7daefc5ec5add030604c8a96e (diff)
downloadbinutils-07caff21f90c2f0c9b7b0e79b00b774be668594c.tar.gz
binutils-07caff21f90c2f0c9b7b0e79b00b774be668594c.tar.bz2
binutils-07caff21f90c2f0c9b7b0e79b00b774be668594c.zip
gdb/dwarf: fix build error with older gcc
With gcc 7.5.0, we get: CXX dwarf2/read.o /home/simark/src/binutils-gdb/gdb/dwarf2/read.c: In function ‘void decode_line_header_for_cu(die_info*, dwarf2_cu*, const file_and_directory&)’: /home/simark/src/binutils-gdb/gdb/dwarf2/read.c:5796:25: error: unused variable ‘_’ [-Werror=unused-variable] auto [_, inserted_] ^ That version of gcc (and earlier) apparently produces unused variable warnings for unused structured bindings. Fix it by accessing `.second` directly to get the "inserted" boolean value. Change-Id: I6e78c8c317623f3d830fef8d043f85ff789133d4 Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81767
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions