Re: [PATCH v1 1/1] compiler_types: Warn about unused static inline functions on second
From: Andy Shevchenko
Date: Thu Nov 06 2025 - 11:01:09 EST
On Thu, Nov 06, 2025 at 08:16:49AM -0700, Nathan Chancellor wrote:
> On Thu, Nov 06, 2025 at 11:50:00AM +0100, Andy Shevchenko wrote:
...
> > * for W=1 build. This will allow clang to find unused functions. Remove the
> > * __inline_maybe_unused entirely after fixing most of -Wunused-function warnings.
> The comment should be updated to W=2 instead of W=1
Granted.
> and we should
> probably drop the sentence about removing __inline_maybe_unused entirely
> since people such as Peter will never want this behavior by default. I
> do not mind doing it myself if I take it.
But future is uncertain, it might be that GCC also gains this and it won't
confuse anyway as it might become a truth (no more such warnings in the code)
at some point.
--
With Best Regards,
Andy Shevchenko