mirror of
https://github.com/curl/curl.git
synced 2025-01-24 14:15:18 +08:00
warnless: remove unused functions
Previously put there for use with the intel compiler Closes #11932
This commit is contained in:
parent
367be426d9
commit
358f7e7577
@ -384,54 +384,3 @@ ssize_t curlx_write(int fd, const void *buf, size_t count)
|
||||
|
||||
#endif /* WIN32 */
|
||||
|
||||
#if defined(__INTEL_COMPILER) && defined(__unix__)
|
||||
|
||||
int curlx_FD_ISSET(int fd, fd_set *fdset)
|
||||
{
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:1469) /* clobber ignored */
|
||||
return FD_ISSET(fd, fdset);
|
||||
#pragma warning(pop)
|
||||
}
|
||||
|
||||
void curlx_FD_SET(int fd, fd_set *fdset)
|
||||
{
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:1469) /* clobber ignored */
|
||||
FD_SET(fd, fdset);
|
||||
#pragma warning(pop)
|
||||
}
|
||||
|
||||
void curlx_FD_ZERO(fd_set *fdset)
|
||||
{
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:593) /* variable was set but never used */
|
||||
FD_ZERO(fdset);
|
||||
#pragma warning(pop)
|
||||
}
|
||||
|
||||
unsigned short curlx_htons(unsigned short usnum)
|
||||
{
|
||||
#if (__INTEL_COMPILER == 910) && defined(__i386__)
|
||||
return (unsigned short)(((usnum << 8) & 0xFF00) | ((usnum >> 8) & 0x00FF));
|
||||
#else
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:810) /* conversion may lose significant bits */
|
||||
return htons(usnum);
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
}
|
||||
|
||||
unsigned short curlx_ntohs(unsigned short usnum)
|
||||
{
|
||||
#if (__INTEL_COMPILER == 910) && defined(__i386__)
|
||||
return (unsigned short)(((usnum << 8) & 0xFF00) | ((usnum >> 8) & 0x00FF));
|
||||
#else
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:810) /* conversion may lose significant bits */
|
||||
return ntohs(usnum);
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* __INTEL_COMPILER && __unix__ */
|
||||
|
Loading…
Reference in New Issue
Block a user