summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/socket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/socket.cpp b/src/common/socket.cpp
index 2d08171..19e9eb4 100644
--- a/src/common/socket.cpp
+++ b/src/common/socket.cpp
@@ -207,6 +207,7 @@ int make_listen_port(uint16_t port)
server_address.sin_family = AF_INET;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
+#pragma GCC diagnostic ignored "-Wuseless-cast"
server_address.sin_addr.s_addr = htonl(INADDR_ANY);
server_address.sin_port = htons(port);
#pragma GCC diagnostic pop
@@ -264,6 +265,7 @@ int make_connection(uint32_t ip, uint16_t port)
server_address.sin_addr.s_addr = ip;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
+#pragma GCC diagnostic ignored "-Wuseless-cast"
server_address.sin_port = htons(port);
#pragma GCC diagnostic pop