Skip to content

clang_nowarn_gdb_remove_unused_1

Tsukasa OI edited this page Oct 30, 2022 · 4 revisions

gdb/xcoffread: Remove unused extra_lines variable

Issue Solved

Clang generates a warning if there is a variable that is set but not used otherwise (-Wunused-but-set-variable). On the default configuration, it causes a build failure (unless --disable-werror is specified).

The only extra_lines use in arrange_linetable function is removed on the commit 558802e4d1c5 ("gdb: change subfile::line_vector to an std::vector"). So, this variable should be removed to prevent a build failure.

Clone this wiki locally