From patchwork Thu Sep 12 20:58:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 3397 Return-Path: Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by open-mesh.org (Postfix) with ESMTPS id ED768601A9D for ; Thu, 12 Sep 2013 22:58:56 +0200 (CEST) Received: from sven-desktop.home.narfation.org (drsd-4db312fb.pool.mediaWays.net [77.179.18.251]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 958811100F3; Thu, 12 Sep 2013 22:58:56 +0200 (CEST) From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Thu, 12 Sep 2013 22:58:32 +0200 Message-Id: <1379019524-23543-2-git-send-email-sven@narfation.org> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1379019524-23543-1-git-send-email-sven@narfation.org> References: <1379019524-23543-1-git-send-email-sven@narfation.org> Cc: Sven Eckelmann Subject: [B.A.T.M.A.N.] [PATCH 01/13] batmand: Disable strict-aliasing rules X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Sep 2013 20:58:57 -0000 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ce1e198..3205573 100755 --- a/Makefile +++ b/Makefile @@ -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