Remove the explicit restrict keyword
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Tue, 13 Oct 2015 19:07:11 +0000 (21:07 +0200)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Tue, 13 Oct 2015 19:07:11 +0000 (21:07 +0200)
It would trigger a compiler error on xlc compiler.  Fixes #620

src/lib/openjp2/dwt.c

index 4ad99ed98c3ef99c00fc743f6b5de6688e6f0aa6..eead5865de144ca8925aae80b8379feb8bc5c9b9 100644 (file)
@@ -741,8 +741,8 @@ static void opj_v4dwt_decode_step1(opj_v4_t* w, OPJ_INT32 count, const OPJ_FLOAT
 
 static void opj_v4dwt_decode_step2(opj_v4_t* l, opj_v4_t* w, OPJ_INT32 k, OPJ_INT32 m, OPJ_FLOAT32 c)
 {
-       OPJ_FLOAT32* restrict fl = (OPJ_FLOAT32*) l;
-       OPJ_FLOAT32* restrict fw = (OPJ_FLOAT32*) w;
+       OPJ_FLOAT32* fl = (OPJ_FLOAT32*) l;
+       OPJ_FLOAT32* fw = (OPJ_FLOAT32*) w;
        OPJ_INT32 i;
        for(i = 0; i < m; ++i){
                OPJ_FLOAT32 tmp1_1 = fl[0];