From 7f861e63553911e2d61c8a7ce8c16b8089446822 Mon Sep 17 00:00:00 2001 From: Richard Kettlewell Date: Sun, 19 Jun 2011 09:08:16 +0100 Subject: [PATCH] bugfix: -fno-strict-aliasing, because tun.c breaks the rules. (What it does is: fills in 'struct sockaddr' fields of 'struct rtentry' by casting to 'struct sockaddr_in' pointers and accessing through those. A more intrusive change would be to construct the sockaddr_in in another object and then memcpy it into place, which would achieve the same effect without (AFAIK) breaching C's aliasing rules.) Signed-off-by: Richard Kettlewell Signed-off-by: Ian Jackson --- Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 30ce8f6..52aaaa5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -39,7 +39,8 @@ CFLAGS:=-Wall @WRITESTRINGS@ @CFLAGS@ \ -Wno-pointer-sign -Wstrict-prototypes -Wmissing-prototypes \ -Wmissing-declarations -Wnested-externs -Wredundant-decls \ -Wpointer-arith -Wformat=2 -Winit-self \ - -Wswitch-enum -Wunused-variable -Wbad-function-cast + -Wswitch-enum -Wunused-variable -Wbad-function-cast \ + -Wno-strict-aliasing -fno-strict-aliasing ALL_CFLAGS:=@DEFS@ -I$(srcdir) -I. $(CFLAGS) CPPFLAGS:=@CPPFLAGS@ LDFLAGS:=@LDFLAGS@ -- 2.30.2