]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
Add no-strict-aliasing to genl
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Wed, 9 Mar 2011 18:39:17 +0000 (10:39 -0800)
committerStephen Hemminger <shemminger@vyatta.com>
Tue, 12 Apr 2011 21:23:06 +0000 (14:23 -0700)
The genl code uses constructs which violate the strict aliasing
constraints of gcc 4.4. Disable the optimization to avoid warnings
and potential breakage.

genl/Makefile

index 44bb83cd05865a5b5ead66b7cba16a7134a68ea8..03d1f26a1cee51b5a263a0cc9abf17e2f35adfe3 100644 (file)
@@ -3,6 +3,8 @@ GENLOBJ=genl.o
 include ../Config
 SHARED_LIBS ?= y
 
+CFLAGS += -fno-strict-aliasing
+
 GENLMODULES :=
 GENLMODULES += ctrl.o