diff options
author | Yang Tse <yangsita@gmail.com> | 2011-05-25 11:19:10 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-05-25 11:19:10 +0200 |
commit | 5ef8f5ead2478defca69e303a47d00d21b16d838 (patch) | |
tree | aa2a36dc18e3f278c8a89cb223485cd7701987ef /ares_nowarn.h | |
parent | e1c9539962b5a7d638036324020f386e675ab1f8 (diff) | |
download | c-ares-5ef8f5ead2478defca69e303a47d00d21b16d838.tar.gz c-ares-5ef8f5ead2478defca69e303a47d00d21b16d838.tar.bz2 c-ares-5ef8f5ead2478defca69e303a47d00d21b16d838.zip |
compiler warning: fix
Fix compiler warning: variable was set but never used
Fix compiler warning: clobber ignored
Diffstat (limited to 'ares_nowarn.h')
-rw-r--r-- | ares_nowarn.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/ares_nowarn.h b/ares_nowarn.h index 6aa478f..0cc204c 100644 --- a/ares_nowarn.h +++ b/ares_nowarn.h @@ -2,7 +2,7 @@ #define HEADER_CARES_NOWARN_H -/* Copyright (C) 2010 by Daniel Stenberg +/* Copyright (C) 2010-2011 by Daniel Stenberg * * Permission to use, copy, modify, and distribute this * software and its documentation for any purpose and without @@ -25,4 +25,23 @@ int aresx_sztosi(ssize_t sznum); unsigned int aresx_sztoui(ssize_t sznum); +#if defined(__INTEL_COMPILER) && defined(__unix__) + +int aresx_FD_ISSET(int fd, fd_set *fdset); + +void aresx_FD_SET(int fd, fd_set *fdset); + +void aresx_FD_ZERO(fd_set *fdset); + +#ifndef BUILDING_ARES_NOWARN_C +# undef FD_ISSET +# define FD_ISSET(a,b) aresx_FD_ISSET((a),(b)) +# undef FD_SET +# define FD_SET(a,b) aresx_FD_SET((a),(b)) +# undef FD_ZERO +# define FD_ZERO(a) aresx_FD_ZERO((a)) +#endif + +#endif /* __INTEL_COMPILER && __unix__ */ + #endif /* HEADER_CARES_NOWARN_H */ |