This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit f52ad42425009e1dc6f96ac368ff533dc47b0416
Author: Xiang Xiao <xiaoxi...@xiaomi.com>
AuthorDate: Sun Nov 13 17:11:58 2022 +0800

    Fix error: unknown attribute 'long_call' ignored 
[-Werror,-Wunknown-attributes]
    
    Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com>
---
 include/nuttx/compiler.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/nuttx/compiler.h b/include/nuttx/compiler.h
index 7e1407d32b..dcafb0a6e9 100644
--- a/include/nuttx/compiler.h
+++ b/include/nuttx/compiler.h
@@ -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 */
 

Reply via email to