This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] Avoid unused static function warning in nsswitch.c.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 28 Sep 2012 13:23:54 -0700 (PDT)
- Subject: [COMMITTED PATCH] Avoid unused static function warning in nsswitch.c.
2012-09-28 Roland McGrath <roland@hack.frob.com>
* nss/nsswitch.c (nss_new_service): Conditionalize definition on
[!DO_STATIC_NSS || SHARED], matching its only caller.
diff --git a/nss/nsswitch.c b/nss/nsswitch.c
index 750cd02..1379553 100644
--- a/nss/nsswitch.c
+++ b/nss/nsswitch.c
@@ -786,6 +786,7 @@ nss_getline (char *line)
}
+#if !defined DO_STATIC_NSS || defined SHARED
static service_library *
internal_function
nss_new_service (name_database *database, const char *name)
@@ -810,6 +811,7 @@ nss_new_service (name_database *database, const char *name)
return *currentp;
}
+#endif
#if defined SHARED && defined USE_NSCD