fix: unused-template warnings - #6156
Conversation
|
Quick forensics: The
template <typename T> static std::string type_id() {Note: current |
|
To explain commit c531b93: I believe Clang 18 already supports Clang 23 merely enables it through |
|
Hey @rwgk, I'm hoping to address your request for proof that this works at lucascolley/scipy#57. You can check out that branch locally and try it yourself, with the one-liner You can also see it working in CI at https://github.com/lucascolley/scipy/actions/runs/33201341348/job/98951271516?pr=57. As for your request for info on the compiler details, you can see the entire Pixi env at https://github.com/lucascolley/scipy/actions/runs/33201341348/job/98951271516?pr=57#step:3:983. |
|
To explain commit 5dde98e: While investigating the misplaced |
|
@lucascolley I wrote the other comment before I discovered that Clang 18 already supports |
static from type_id|
we are 🟢! |
Analogous to gh-6155.
I hit the following warning when trying to build SciPy with clang-23 in scipy/scipy#26041:
Claude code says that this
staticqualifiers is incorrect, since including it on a function at namespace scope implies that the function is only visible in this translation unit.Suggested changelog entry:
-Wall -Werrorby resolving-Wunused-templatediagnostics and removing an unreachabletype_has_shared_from_thisoverload exposed during the investigation.