-
Notifications
You must be signed in to change notification settings - Fork 2
clang_nowarn_gdb_remove_unused_1
Tsukasa OI edited this page Oct 30, 2022
·
4 revisions
- Status: Merged for GDB 13
- Branch:
clang-nowarn-gdb-remove-unused-1 - Tracking PR: #59 (view Pull Request and Diff)
- Mailing List:
- PATCH v1 (2022-09-25)
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.