diff options
author | Yang Tse <yangsita@gmail.com> | 2011-05-24 20:39:58 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-05-24 20:39:58 +0200 |
commit | b7357176063256a44b4a5a20c6b9bbe92bdda713 (patch) | |
tree | 832ce5f2036b99c11cc2f0d301629502e99afcc6 /lib/warnless.c | |
parent | ec33742d1bd22fd964fda9a9947a4ec3c3e3236a (diff) | |
download | curl-b7357176063256a44b4a5a20c6b9bbe92bdda713.tar.gz |
compiler warning: fix
Fix compiler warning: variable was set but never used
Fix compiler warning: clobber ignored
Diffstat (limited to 'lib/warnless.c')
-rw-r--r-- | lib/warnless.c | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/lib/warnless.c b/lib/warnless.c index bc29d28df..89abd14bc 100644 --- a/lib/warnless.c +++ b/lib/warnless.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -22,6 +22,8 @@ #include "setup.h" +#define BUILDING_WARNLESS_C 1 + #include "warnless.h" #define CURL_MASK_SCHAR 0x7F @@ -251,3 +253,31 @@ size_t curlx_sotouz(curl_off_t sonum) # pragma warning(pop) #endif } + +#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) +} + +#endif /* __INTEL_COMPILER && __unix__ */ |