| commit | e64cd55419b79018caf66043fb9db77aef0abb1d | [log] [tgz] |
|---|---|---|
| author | Tom de Vries <tdevries@suse.de> | Sat May 24 10:27:12 2025 +0200 |
| committer | Tom de Vries <tdevries@suse.de> | Sat May 24 10:27:12 2025 +0200 |
| tree | 6d0e6eb0b73b73bcd55112535760459f16654f23 | |
| parent | c8ed94e1433fc27342b53130ce8d4b0f0839b2ab [diff] |
[gdb/build] Fix unused var in lookup_dwo_unit_in_dwp
On x86_64-linux, with gcc 7.5.0 I ran into a build breaker:
...
gdb/dwarf2/read.c: In function ‘dwo_unit* lookup_dwo_unit_in_dwp()’:
gdb/dwarf2/read.c:7403:22: error: unused variable ‘inserted’ \
[-Werror=unused-variable]
auto [it, inserted] = dwo_unit_set.emplace (std::move (dwo_unit));
^
...
Fix this by dropping the unused variable.
Tested on x86_64-linux, by completing a build.