[01/13] batmand: Disable strict-aliasing rules
Commit Message
There are different aliasing problems in posix/tunnel.c and maybe other files.
This can lead to wrongly generated code when the compiler assumes strict
aliasing rules.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -37,7 +37,7 @@ MANPAGE = man/batmand.8
#NO_POLICY_ROUTING = -DNO_POLICY_ROUTING
# batmand flags and options
-CFLAGS += -pedantic -Wall -W -std=gnu99 -MD
+CFLAGS += -pedantic -Wall -W -std=gnu99 -MD -fno-strict-aliasing
CPPFLAGS += -DDEBUG_MALLOC -DMEMORY_USAGE -DPROFILE_DATA $(NO_POLICY_ROUTING)
LDLIBS += -lpthread