Skip to content

Commit c928280

Browse files
authored
Merge pull request #1293 from boberfly/fix/gcc11
IECore : MatrixInterpolator GCC 11 initialise fix
2 parents c2cd6eb + 6a4da9b commit c928280

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/IECore/MatrixInterpolator.inl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ struct LinearInterpolator< Imath::Matrix44<T> >
6666
return;
6767
}
6868

69-
Imath::Vec3<T> s0, s1, sx;
70-
Imath::Vec3<T> h0, h1, hx;
71-
Imath::Vec3<T> r0, r1, rx;
72-
Imath::Vec3<T> t0, t1, tx;
69+
Imath::Vec3<T> s0( 1 ), s1( 1 ), sx( 1 );
70+
Imath::Vec3<T> h0( 0 ), h1( 0 ), hx( 0 );
71+
Imath::Vec3<T> r0( 0 ), r1( 0 ), rx( 0 );
72+
Imath::Vec3<T> t0( 0 ), t1( 0 ), tx( 0 );
7373

7474
extractSHRT(y0, s0, h0, r0, t0);
7575
extractSHRT(y1, s1, h1, r1, t1);
@@ -118,10 +118,10 @@ struct CubicInterpolator< Imath::Matrix44< T > >
118118
return;
119119
}
120120

121-
Imath::Vec3<T> s0, s1, s2, s3, sx;
122-
Imath::Vec3<T> h0, h1, h2, h3, hx;
123-
Imath::Vec3<T> r0, r1, r2, r3, rx;
124-
Imath::Vec3<T> t0, t1, t2, t3, tx;
121+
Imath::Vec3<T> s0( 1 ), s1( 1 ), s2( 1 ), s3( 1 ), sx( 1 );
122+
Imath::Vec3<T> h0( 0 ), h1( 0 ), h2( 0 ), h3( 0 ), hx( 0 );
123+
Imath::Vec3<T> r0( 0 ), r1( 0 ), r2( 0 ), r3( 0 ), rx( 0 );
124+
Imath::Vec3<T> t0( 0 ), t1( 0 ), t2( 0 ), t3( 0 ), tx( 0 );
125125

126126
extractSHRT(y0, s0, h0, r0, t0);
127127
extractSHRT(y1, s1, h1, r1, t1);

0 commit comments

Comments
 (0)