Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/ladspa-cmt/files: ladspa-cmt-1.16-sa.patch
Date: Tue, 27 Nov 2012 12:10:11
Message-Id: 20121127120845.02AFE20C65@flycatcher.gentoo.org
1 aballier 12/11/27 12:08:44
2
3 Added: ladspa-cmt-1.16-sa.patch
4 Log:
5 Fix strict aliasing warnings, bug #307563
6
7 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
8
9 Revision Changes Path
10 1.1 media-libs/ladspa-cmt/files/ladspa-cmt-1.16-sa.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ladspa-cmt/files/ladspa-cmt-1.16-sa.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ladspa-cmt/files/ladspa-cmt-1.16-sa.patch?rev=1.1&content-type=text/plain
14
15 Index: ladspa-cmt-1.16-sa.patch
16 ===================================================================
17 Fix strict aliasing warnings: reeverb/Components/allpass.h:36:2: warning:
18 dereferencing type-punned pointer will break strict-aliasing rules
19
20 https://bugs.gentoo.org/show_bug.cgi?id=307563
21
22 Index: cmt/src/freeverb/Components/denormals.h
23 ===================================================================
24 --- cmt.orig/src/freeverb/Components/denormals.h
25 +++ cmt/src/freeverb/Components/denormals.h
26 @@ -8,7 +8,7 @@
27 #ifndef _denormals_
28 #define _denormals_
29
30 -#define undenormalise(sample) if(((*(unsigned int*)&sample)&0x7f800000)==0) sample=0.0f
31 +#define undenormalise(sample) if((((unsigned int)sample)&0x7f800000)==0) sample=0.0f
32
33 #endif//_denormals_