mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2025-10-06 11:59:48 +00:00
Kill compiler warning
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
|
||||
/* Copyright (C) 2010-2011 by Daniel Stenberg
|
||||
/* Copyright (C) 2010-2012 by Daniel Stenberg
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this
|
||||
* software and its documentation for any purpose and without
|
||||
@ -214,6 +214,25 @@ unsigned int aresx_sztoui(ssize_t sznum)
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
** signed int to unsigned short
|
||||
*/
|
||||
|
||||
unsigned short aresx_sitous(int sinum)
|
||||
{
|
||||
#ifdef __INTEL_COMPILER
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable:810) /* conversion may lose significant bits */
|
||||
#endif
|
||||
|
||||
DEBUGASSERT(sinum >= 0);
|
||||
return (unsigned short)(sinum & (int) CARES_MASK_USHORT);
|
||||
|
||||
#ifdef __INTEL_COMPILER
|
||||
# pragma warning(pop)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(__INTEL_COMPILER) && defined(__unix__)
|
||||
|
||||
int aresx_FD_ISSET(int fd, fd_set *fdset)
|
||||
|
Reference in New Issue
Block a user