Commit abb2ea7dfd82 ("compiler, clang: suppress warning for unused static inline functions") just caused more warnings due to re-defining the 'inline' macro. So undef it before re-defining it, and also add the 'notrace' attribute like the gcc version that this is overriding does. Maybe this makes clang happier.
Unified · Split
| @@ -21,4 +21,5 @@ · 20 unmodified lines | ||
| 21 | 21 | * -Wunused-function. This turns out to avoid the need for complex #ifdef |
| 22 | 22 | * directives. Suppress the warning in clang as well. |
| 23 | 23 | */ |
| 24 | −#define inline inline __attribute__((unused)) | |
| 24 | +#undef inline | |
| 25 | +#define inline inline __attribute__((unused)) notrace | |