From 1adc44e059ac8f3ec61a8760a1e122a8048dffe9 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 13 Apr 2020 12:50:36 +0900 Subject: [PATCH] Enable modlib_findsection This fixes unused warning on modlib_findsection --- libs/libc/modlib/modlib.h | 2 -- libs/libc/modlib/modlib_sections.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/libs/libc/modlib/modlib.h b/libs/libc/modlib/modlib.h index f03cc98e51..7b17d79990 100644 --- a/libs/libc/modlib/modlib.h +++ b/libs/libc/modlib/modlib.h @@ -157,10 +157,8 @@ int modlib_loadshdrs(FAR struct mod_loadinfo_s *loadinfo); * ****************************************************************************/ -#if 0 /* Not used */ int modlib_findsection(FAR struct mod_loadinfo_s *loadinfo, FAR const char *sectname); -#endif /**************************************************************************** * Name: modlib_allocbuffer diff --git a/libs/libc/modlib/modlib_sections.c b/libs/libc/modlib/modlib_sections.c index c65fbfcbb5..607da9e479 100644 --- a/libs/libc/modlib/modlib_sections.c +++ b/libs/libc/modlib/modlib_sections.c @@ -240,7 +240,6 @@ int modlib_loadshdrs(FAR struct mod_loadinfo_s *loadinfo) * ****************************************************************************/ -#if 0 /* Not used */ int modlib_findsection(FAR struct mod_loadinfo_s *loadinfo, FAR const char *sectname) { @@ -281,4 +280,3 @@ int modlib_findsection(FAR struct mod_loadinfo_s *loadinfo, return -ENOENT; } -#endif