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 81717a59eaa9ab106b5ed2be693260a6e861e243 Author: dongjiuzhu1 <[email protected]> AuthorDate: Mon Sep 25 17:19:17 2023 +0800 libs/modlib: remove dupliate define about modlib_dumpbuffer CP: nuttx/include/nuttx/config.h modlib/modlib_init.c:53: warning: "modlib_dumpbuffer" redefined 53 | # define modlib_dumpbuffer(m,b,n) binfodumpbuffer(m,b,n) | In file included from modlib/modlib_init.c:36: nuttx/include/nuttx/lib/modlib.h:64: note: this is the location of the previous definition 64 | # define modlib_dumpbuffer(m,b,n) sinfodumpbuffer(m,b,n) | Signed-off-by: dongjiuzhu1 <[email protected]> --- libs/libc/modlib/modlib_init.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/libs/libc/modlib/modlib_init.c b/libs/libc/modlib/modlib_init.c index 6b106a21e3..6b269c9805 100644 --- a/libs/libc/modlib/modlib_init.c +++ b/libs/libc/modlib/modlib_init.c @@ -37,24 +37,6 @@ #include "modlib/modlib.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/* CONFIG_DEBUG_FEATURES, CONFIG_DEBUG_INFO, and CONFIG_MODLIB_DUMPBUFFER - * have to be defined or CONFIG_MODLIB_DUMPBUFFER does nothing. - */ - -#if !defined(CONFIG_DEBUG_INFO) || !defined(CONFIG_MODLIB_DUMPBUFFER) -# undef CONFIG_MODLIB_DUMPBUFFER -#endif - -#ifdef CONFIG_MODLIB_DUMPBUFFER -# define modlib_dumpbuffer(m,b,n) binfodumpbuffer(m,b,n) -#else -# define modlib_dumpbuffer(m,b,n) -#endif - /**************************************************************************** * Private Functions ****************************************************************************/
