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/nuttx.git

commit 46f3477d2fc4bf67f3f37c15b7f8fb52e24f869f
Author: chenxiaoyi <[email protected]>
AuthorDate: Thu Jun 13 11:32:43 2024 +0800

    compiler.h: fix windows build error
    
    warning C5101: use of preprocessor directive in function-like macro 
argument list is undefined behavior
    
    Co-authored-by: chenxiaoyi <[email protected]>
    Co-authored-by: xuxin19 <[email protected]>
---
 include/nuttx/compiler.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/nuttx/compiler.h b/include/nuttx/compiler.h
index c5610df597..e637f5c533 100644
--- a/include/nuttx/compiler.h
+++ b/include/nuttx/compiler.h
@@ -887,7 +887,7 @@
 
 /* Pre-processor */
 
-#  define CONFIG_CPP_HAVE_VARARGS 1 /* Supports variable argument macros */
+#  undef CONFIG_CPP_HAVE_VARARGS /* No variable argument macros */
 
 /* Intriniscs */
 

Reply via email to