mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
compiler, clang: properly override 'inline' for clang
Commit abb2ea7dfd
("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.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
5ad9345d23
commit
6d53cefb18
1 changed files with 2 additions and 1 deletions
|
@ -21,4 +21,5 @@
|
||||||
* -Wunused-function. This turns out to avoid the need for complex #ifdef
|
* -Wunused-function. This turns out to avoid the need for complex #ifdef
|
||||||
* directives. Suppress the warning in clang as well.
|
* directives. Suppress the warning in clang as well.
|
||||||
*/
|
*/
|
||||||
#define inline inline __attribute__((unused))
|
#undef inline
|
||||||
|
#define inline inline __attribute__((unused)) notrace
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue