You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix -Wchanges-meaning errors from newer GCC (#1095)
GCC 15 treats `-Wchanges-meaning` as an error, which fires when a struct
member declaration shadows its own type name (e.g. `Format Format;` or
`std::unique_ptr<Fence> Fence;`). CMake selects GCC as the default
compiler on Linux when both GCC and Clang are installed, so the
`OffloadTest` library fails to build on distros shipping GCC 15 (e.g.
Arch Linux).
The shadowing was introduced by:
- PR #1020 (Introduce a new `Texture` type): `Format Format;` in
`TextureCreateDesc`
- PR #1007 (Implement an abstract `Fence` type): `unique_ptr<Fence>
Fence;` in `InvocationState` (all backends)
Rename the offending members to break the shadowing:
- `TextureCreateDesc::Format` -> `TextureCreateDesc::Fmt`
- `InvocationState::Fence` -> `InvocationState::CompletionFence` (all
backends)
Co-authored-by: Claude Opus 4.6 <[email protected]>
0 commit comments