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 17:11:58 +08:00 committed by Xiang Xiao
parent 94655e95ea
commit f52ad42425

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 */