commit 7207bef418c655107d3076b20dd797418ad82cd7 from: Alexander Barton date: Mon Jan 29 22:30:53 2018 UTC Fix Get_Error() usage, take II This should fix the following compiler warning: resolve.c:113:1: warning: ‘Get_Error’ defined but not used [-Wunused-function] Which can happen, because the logic of commit 543f44bf isn't sufficient: Get_Error() is only used when neither HAVE_WORKING_GETADDRINFO nor HAVE_GETNAMEINFO are set ... Enhances 543f44bf. Closes #241. commit - 619a3f3ff28e49d0f827924d1dbe84c6c3a284c0 commit + 7207bef418c655107d3076b20dd797418ad82cd7 blob - e1903254605fafbf385f87159a6a5e6a601edaa8 blob + a8a163f0cf786c73ef34173ed3c3b90059e3fdd5 --- src/ngircd/resolve.c +++ src/ngircd/resolve.c @@ -108,6 +108,7 @@ Resolve_Name( PROC_STAT *s, const char *Host, void (*c return false; } /* Resolve_Name */ +#if !defined(HAVE_WORKING_GETADDRINFO) || !defined(HAVE_GETNAMEINFO) #ifdef h_errno static char * Get_Error( int H_Error ) @@ -126,6 +127,7 @@ Get_Error( int H_Error ) return "unknown error"; } #endif +#endif /* Do "IDENT" (aka "AUTH") lookup and append result to resolved_addr array */