ci: drop the CI exception for unused functions with clang
fix clang warnings for unused functions
GCC does not warn about unused static inlined functions. Clang does.
Some functions could be simply dropped. Others were only used with specific defines. Lastly some were defined for completeness.
With this we can drop the CI exception for unused functions with clang.