File graphviz-type_punning.patch of Package graphviz

From: Philipp Thomas <pth@suse.de>
Date: 2013-03-28 11:43:28+01:00
Subject: Switch of strict aliasing

The vmalloc code uses type-punning in a macro so switch off strict aliasing
for this code.

---
 lib/vmalloc/Makefile.am |    2 ++
 1 file changed, 2 insertions(+)

Index: lib/vmalloc/Makefile.am
===================================================================
--- lib/vmalloc/Makefile.am.orig	2009-09-16 20:49:46.000000000 +0200
+++ lib/vmalloc/Makefile.am	2013-03-28 11:42:12.948760295 +0100
@@ -9,6 +9,8 @@ libvmalloc_C_la_SOURCES = malloc.c vmbes
 	vmprofile.c vmregion.c vmsegment.c vmset.c vmstat.c vmstrdup.c \
 	vmtrace.c vmwalk.c
 
+AM_CFLAGS = -fno-strict-aliasing
+
 ${top_builddir}/FEATURE/vmalloc: ${top_srcdir}/lib/vmalloc/features/vmalloc
 	mkdir -p ${top_builddir}/FEATURE
 	${top_srcdir}/iffe - set cc $(CC) $(CCMODE) $(CXFLAGS) : run ${top_srcdir}/lib/vmalloc/features/vmalloc > $@
openSUSE Build Service is sponsored by