[PATCH nftlb 4/4] server: fix compilation warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



http://lists.schmorp.de/pipermail/libev/2010q1/000920.html

The following warning should be calmed via -Wno-strict-aliasing:

server.c: In function ‘server_init’:
server.c:375:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  ev_io_init(&w_accept, accept_cb, sd, EV_READ);
  ^~~~~~~~~~
server.c:375:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
server.c:375:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
server.c:375:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
---
 Make_global.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Make_global.am b/Make_global.am
index 2254272b8793..04a193cae1f4 100644
--- a/Make_global.am
+++ b/Make_global.am
@@ -1,5 +1,5 @@
 AM_CPPFLAGS = -I$(top_srcdir)/include
 
 AM_CFLAGS = -std=gnu99 -W -Wall -Wno-unused-parameter \
-	-Wmissing-prototypes \
+	-Wmissing-prototypes -Wno-strict-aliasing \
 	${LIBNFTABLES_CFLAGS} ${LIBJSON_CFLAGS} -lev
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux