Unused Type Alias GeneralBlockPanelKernel.h:1211
Summary
An unused type alias warning/error surfaces in General Block Panel Kernel. Location: https://gitlab.com/libeigen/eigen/-/blob/master/Eigen/src/Core/products/GeneralBlockPanelKernel.h?ref_type=heads#L1211
Warning/error:
Eigen/src/Core/products/GeneralBlockPanelKernel.h:1211:11: error: unused type alias 'LhsPacketType' [-Werror,-Wunused-local-typedef]
1211 | using LhsPacketType = std::remove_all_extents_t<std::remove_reference_t<LhsArray>>;
Environment
- Operating System : Linux
- Architecture : x64
- Eigen Version : head
- Compiler Version : Clang++-20/21
- Compile Flags : -Werror -Wunused-local-typedef
- Vector Extension : N/A
Minimal Example
Reference: https://github.com/FrancoisCarouge/Kalman/actions/runs/22165959260/job/64238291967?pr=880#step:9:26
Steps to reproduce the issue
- Compiler with extra errors.
What is the current bug behavior?
Compilation error.
What is the expected correct behavior?
Warning / error free successful compilation.
Relevant logs
Reference: https://github.com/FrancoisCarouge/Kalman/actions/runs/22165959260/job/64238291967?pr=880#step:9:26
Anything else that might help
A possible fix might be to move the alias type declaration in the helper macro a few lines below.
Edited by François Carouge