From e5835d6ce887db00c0f8b66e6c1b8a4fbcb9dfb0 Mon Sep 17 00:00:00 2001 From: guoshichao Date: Thu, 1 Aug 2024 21:37:39 +0800 Subject: [PATCH] greenhills: fix the macro undefined warning CC: mount/fs_foreachmountpoint.c "/home/guoshichao/work_profile/vela_os/vela_car_6/nuttx/include/nuttx/mqueue.h", line 40: warning #193-D: zero used for undefined preprocessing identifier "CONFIG_MQ_MAXMSGSIZE" #if CONFIG_MQ_MAXMSGSIZE > 0 ^ Signed-off-by: guoshichao --- include/nuttx/mqueue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/mqueue.h b/include/nuttx/mqueue.h index 1e7121284c..cf4d8d2cc5 100644 --- a/include/nuttx/mqueue.h +++ b/include/nuttx/mqueue.h @@ -37,7 +37,7 @@ #include #include -#if CONFIG_MQ_MAXMSGSIZE > 0 +#if defined(CONFIG_MQ_MAXMSGSIZE) && (CONFIG_MQ_MAXMSGSIZE > 0) /**************************************************************************** * Pre-processor Definitions