summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2017-08-14 15:33:03 (GMT)
committerdgp <dgp@users.sourceforge.net>2017-08-14 15:33:03 (GMT)
commit277f101d7f3257acf31bc529b97cde31d3179761 (patch)
treeee3657a8f32878a2dbb44dab4aa20f732e1aa7f1 /unix
parent8ccd8d10efecf3891466ee0df15700557ee170aa (diff)
downloadtcl-277f101d7f3257acf31bc529b97cde31d3179761.zip
tcl-277f101d7f3257acf31bc529b97cde31d3179761.tar.gz
tcl-277f101d7f3257acf31bc529b97cde31d3179761.tar.bz2
[f2336c116b] Move pragmas to make gcc happy; it is pickier than clang.
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixSock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c
index b9b6b53..2f1a78e 100644
--- a/unix/tclUnixSock.c
+++ b/unix/tclUnixSock.c
@@ -700,6 +700,8 @@ TcpClose2Proc(
*/
#ifndef NEED_FAKE_RFC2553
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-aliasing"
static inline int
IPv6AddressNeedsNumericRendering(
struct in6_addr addr)
@@ -713,16 +715,14 @@ IPv6AddressNeedsNumericRendering(
* at least some versions of OSX.
*/
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wstrict-aliasing"
if (!IN6_IS_ADDR_V4MAPPED(&addr)) {
-#pragma GCC diagnostic pop
return 0;
}
return (addr.s6_addr[12] == 0 && addr.s6_addr[13] == 0
&& addr.s6_addr[14] == 0 && addr.s6_addr[15] == 0);
}
+#pragma GCC diagnostic pop
#endif /* NEED_FAKE_RFC2553 */
static void