You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/04/13 15:49:33 UTC

[incubator-nuttx] 02/04: Enable modlib_findsection

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 1adc44e059ac8f3ec61a8760a1e122a8048dffe9
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Mon Apr 13 12:50:36 2020 +0900

    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 f03cc98..7b17d79 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 c65fbfc..607da9e 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