https://reviews.llvm.org/D144252 removed -Wno-unused-function from the
libunwind build, but we have an unused function when you're building for
armv7 without assertions. Mark that function as possibly unused to avoid
the warning, and mark the parameter as a const pointer while I'm here to
make it clear that nothing is modified by a debugging function.
Details
Details
- Reviewers
philnik - Group Reviewers
Restricted Project - Commits
- rG3da76c211617: [libunwind] Fix build with -Wunused-function
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
libunwind builds with C++11 (https://github.com/llvm/llvm-project/blob/2f976b921071cf4349175554f690798a0d2b81f3/libunwind/src/CMakeLists.txt#L140). Dunno if that's intentional or just an oversight. Both gcc and Clang seem to support [[maybe_unused]] in C++11 as an extension anyway, but I could use [[gnu::unused]] if we want to avoid -pedantic warnings.
Comment Actions
I don't think there is any reason that we use C++11 for libunwind, but that is a different project. LGTM.