mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 05:14:27 +08:00
Fix error: unknown attribute 'long_call' ignored [-Werror,-Wunknown-attributes]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user