From 46f3477d2fc4bf67f3f37c15b7f8fb52e24f869f Mon Sep 17 00:00:00 2001 From: chenxiaoyi Date: Thu, 13 Jun 2024 11:32:43 +0800 Subject: [PATCH] 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 Co-authored-by: xuxin19 --- 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 */