jrtc27 added a comment. In D79916#2279901 <https://reviews.llvm.org/D79916#2279901>, @Bdragon28 wrote:
> In D79916#2279884 <https://reviews.llvm.org/D79916#2279884>, @jrtc27 wrote: > >> But also you really should not get warnings for unused static functions in >> included headers, only ones defined in the C source file itself. We'd have >> countless warnings in the kernel across all architectures otherwise. > > I agree. But that's what it is doing when using always_inline in combination > with -Wunused-function. > > There is currently no real usage of always_inline in system headers though, > so maybe I'm just the first to complain about it? We use them in CheriBSD and have no such issues that I've ever noticed. When was the last time you checked (and what compiler)? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D79916/new/ https://reviews.llvm.org/D79916 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits