On Tue Mar 4 08:43:56 2025 +0000, Konstantin Demin wrote:
This is second variant of common LTO functions (they were in `tools/tools.h` before). If I remove "used" attribute from function definition then compiler emits warning (`-Wunused-function`) and with `-Werror` it produces build error - that's because not all of them are used in affected tools. Both variants - "used" attribute or "inline" - are looking not so good as it should be but I've chosen first one. However I'll apply your suggestions if there're any.
If you want it to act like a "macro" in a header just use `static inline`, it's used all over the place in wine.