From 60e58ef85ed70eab353d3684169f6bc8d21ab0d1 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 6 Feb 2014 11:48:23 -0800 Subject: Fix build warnings --- src/io/fd.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/io') diff --git a/src/io/fd.hpp b/src/io/fd.hpp index e4bcff7..ca703d6 100644 --- a/src/io/fd.hpp +++ b/src/io/fd.hpp @@ -138,15 +138,24 @@ namespace io } void clr(FD fd) { +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wold-style-cast" FD_CLR(fd.uncast_dammit(), &fds); +# pragma GCC diagnostic pop } bool isset(FD fd) { +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wold-style-cast" return FD_ISSET(fd.uncast_dammit(), &fds); +# pragma GCC diagnostic pop } void set(FD fd) { +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wold-style-cast" FD_SET(fd.uncast_dammit(), &fds); +# pragma GCC diagnostic pop } static -- cgit v1.2.3-60-g2f50