From: Roland McGrath Date: Fri, 28 Sep 2012 20:21:08 +0000 (-0700) Subject: Avoid unused static function warning in nsswitch.c. X-Git-Tag: glibc-2.17~482 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d3b9fd9e8dc00a5431408f27f0756e8e3923efd1;p=thirdparty%2Fglibc.git Avoid unused static function warning in nsswitch.c. --- diff --git a/ChangeLog b/ChangeLog index 2771e4bad68..48f7515c018 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-09-28 Roland McGrath + + * nss/nsswitch.c (nss_new_service): Conditionalize definition on + [!DO_STATIC_NSS || SHARED], matching its only caller. + 2012-09-28 David S. Miller * sysdeps/sparc/fpu/libm-test-ulps: Update. diff --git a/nss/nsswitch.c b/nss/nsswitch.c index 750cd02ab07..1379553abee 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