summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-08-22 12:29:40 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-08-22 12:29:40 -0700
commit2894bfec6b2c24a86639336053b27eae77ecab1a (patch)
tree4da26db09b49032ef490f0e9d3b7e27705598c80 /src
parent97f5effe3a56b9c395b20624b2a141ab84a625f8 (diff)
downloadtmwa-2894bfec6b2c24a86639336053b27eae77ecab1a.tar.gz
tmwa-2894bfec6b2c24a86639336053b27eae77ecab1a.tar.bz2
tmwa-2894bfec6b2c24a86639336053b27eae77ecab1a.tar.xz
tmwa-2894bfec6b2c24a86639336053b27eae77ecab1a.zip
Suppress some warnings that only seem to appear on Fedora
Using gcc 4.8 and 2.17 works fine on Debian, but not Fedora. I'm planning on a better fix eventually, once I have distinct types for integers of a specified endianness.
Diffstat (limited to 'src')
-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