netresolv: Remove or disable unused variables

Fixes #12746.
This commit is contained in:
Adrien Destugues 2016-08-21 16:51:34 +02:00
parent 4072c4f1b3
commit e43cfe781f
3 changed files with 4 additions and 3 deletions

View File

@ -22,7 +22,8 @@ for architectureObject in [ MultiArchSubDirSetup ] {
{
# we want to have the xxx_r functions, IPv6, and md5 implementation
# we also need to use our BSD compatibility functions
local defines = _REENTRANT=1 USE_MD5=1 _BSD_SOURCE INET6 ;
# and enable "lint" to remove the RCSID from all the files.
local defines = _REENTRANT=1 USE_MD5=1 _BSD_SOURCE INET6 lint LINT ;
defines = [ FDefines $(defines) ] ;
SubDirCcFlags $(defines) -Wno-sign-compare ;
SubDirC++Flags $(defines) -Wno-sign-compare ;

View File

@ -131,8 +131,6 @@ static uint32_t net_mask __P((struct in_addr));
# define isascii(c) (!(c & 0200))
#endif
static const struct timespec ts = { 0, 0 };
/*
* Resolver state default settings.
*/

View File

@ -174,7 +174,9 @@ static int pselect(int, void *, void *, void *,
#endif
void res_pquery(const res_state, const u_char *, int, FILE *);
#ifdef DEBUG
static const int niflags = NI_NUMERICHOST | NI_NUMERICSERV;
#endif
/* Public. */