From 1cc1884587bd156fb210c2a049ae12b763a2a9e1 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 17 Feb 2007 12:07:16 +0000 Subject: add gcc attributes to some functions and parameters git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@250 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/hosts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nss/hosts.c') diff --git a/nss/hosts.c b/nss/hosts.c index 72a9c6c..cd13c62 100644 --- a/nss/hosts.c +++ b/nss/hosts.c @@ -28,6 +28,7 @@ #include "prototypes.h" #include "common.h" +#include "compat/attrs.h" /* Redifine some ERROR_OUT macros as we also want to set h_errnop. */ @@ -219,7 +220,7 @@ enum nss_status _nss_ldap_gethostbyaddr_r( /* thread-local file pointer to an ongoing request */ static __thread FILE *hostentfp; -enum nss_status _nss_ldap_sethostent(int stayopen) +enum nss_status _nss_ldap_sethostent(int UNUSED(stayopen)) { /* temporary storage for h_errno (used in NSS_SETENT error handling) */ -- cgit v1.2.3