Fix error: unknown attribute 'long_call' ignored [-Werror,-Wunknown-attributes]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-11-13 22:35:19 +08:00
committed by Xiang Xiao
parent 94655e95ea
commit f52ad42425
+5 -1
View File
@@ -148,7 +148,11 @@
* (even though -mlong-calls does not appear in the compilation options)
*/
# define farcall_function __attribute__ ((long_call))
# if defined(__clang__)
# define farcall_function
# else
# define farcall_function __attribute__ ((long_call))
# endif
/* Code locate */