diff options
author | 2009-01-20 21:05:33 +0000 | |
---|---|---|
committer | 2009-01-20 21:05:33 +0000 | |
commit | 89408fd3a0dedf336ad6333f2981480fd5d8b008 (patch) | |
tree | db1ab1128002abe4238402dfa5ef5f5287c9155d /gnulib/lib/poll.c | |
parent | Support domain events in test driver (diff) | |
download | libvirt-89408fd3a0dedf336ad6333f2981480fd5d8b008.tar.gz libvirt-89408fd3a0dedf336ad6333f2981480fd5d8b008.tar.bz2 libvirt-89408fd3a0dedf336ad6333f2981480fd5d8b008.zip |
Refresh GNULIB, also pulling in random_r module
Diffstat (limited to 'gnulib/lib/poll.c')
-rw-r--r-- | gnulib/lib/poll.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnulib/lib/poll.c b/gnulib/lib/poll.c index da9c9f294..ae4f4b5e9 100644 --- a/gnulib/lib/poll.c +++ b/gnulib/lib/poll.c @@ -19,6 +19,11 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +/* Tell gcc not to warn about the (nfd < 0) tests, below. */ +#if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__ +# pragma GCC diagnostic ignored "-Wtype-limits" +#endif + #include <config.h> #include <alloca.h> @@ -404,7 +409,6 @@ poll (pfd, nfd, timeout) fd_set rfds, wfds, xfds; BOOL poll_again; MSG msg; - char sockbuf[256]; int rc = 0; nfds_t i; @@ -426,7 +430,6 @@ poll (pfd, nfd, timeout) /* Classify socket handles and create fd sets. */ for (i = 0; i < nfd; i++) { - size_t optlen = sizeof(sockbuf); pfd[i].revents = 0; if (pfd[i].fd < 0) continue; |