Fix arch/optimizer specific problem with uninitialized variables.

This commit is contained in:
Richard Shaw 2017-01-04 13:16:28 -06:00
parent 667a749e2f
commit 2bf5380797
2 changed files with 13 additions and 0 deletions

11
OpenImageIO-uninit.patch Normal file
View File

@ -0,0 +1,11 @@
--- a/src/libtexture/texturesys.cpp
+++ b/src/libtexture/texturesys.cpp
@@ -2477,7 +2477,7 @@ TextureSystemImpl::sample_bicubic (int n
} else {
wx = evalBSplineWeights (float4(sfrac));
wy = evalBSplineWeights (float4(tfrac));
-#if (defined(__i386__) && !defined(__x86_64__)) || defined(__aarch64__)
+#if !defined(__x86_64__))
// Some platforms complain here about these being uninitialized,
// so initialize them. Don't waste the cycles for platforms that
// don't seem to have that error. It's a false positive -- this

View File

@ -15,6 +15,7 @@ Source0: https://github.com/%{name}/%{subname}/archive/Release-%{version}
#Source1: oiio-images.tar.gz
Patch0: OpenImageIO-man.patch
Patch1: OpenImageIO-uninit.patch
BuildRequires: cmake gcc-c++
BuildRequires: txt2man
@ -98,6 +99,7 @@ Development files for package %{name}
%prep
%setup -q -n oiio-Release-%{version}
%patch0 -p1
%patch1 -p1
# Remove bundled pugixml
rm -f src/include/OpenImageIO/pugixml.hpp \