summaryrefslogtreecommitdiff
path: root/src/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/io')
-rw-r--r--src/io/fd.hpp9
1 files changed, 9 insertions, 0 deletions
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