File old-gcc.patch of Package photivo
diff --git a/Sources/ptImage_EAW.cpp b/Sources/ptImage_EAW.cpp
index e4d7b2d..08779a6 100644
--- a/Sources/ptImage_EAW.cpp
+++ b/Sources/ptImage_EAW.cpp
@@ -43,7 +43,7 @@ void wtf_channel(float *buf, float **weight_a, const int l, const int width, con
const int st = step/2;
#ifdef _OPENMP
-#pragma omp parallel for default(none) shared(weight_a,buf,height,width,st,step,l,wd) schedule(static)
+#pragma omp parallel for shared(weight_a,buf) schedule(static)
#endif
for(int j=0;j<height;j++)
{ // rows
@@ -66,7 +66,7 @@ void wtf_channel(float *buf, float **weight_a, const int l, const int width, con
FREE2(tmp);
}
#ifdef _OPENMP
-#pragma omp parallel for default(none) shared(weight_a,buf,height,width,st,l,step,wd) schedule(static)
+#pragma omp parallel for shared(weight_a,buf) schedule(static)
#endif
for(int i=0;i<width;i++)
{ // cols
@@ -97,7 +97,7 @@ void iwtf_channel(float *buf, float **weight_a, const int l, const int width, co
const int wd = (int)(1 + (width>>(l-1)));
#ifdef _OPENMP
-#pragma omp parallel for default(none) shared(weight_a,buf,height,width,st,l,step,wd) schedule(static)
+#pragma omp parallel for shared(weight_a,buf) schedule(static)
#endif
for(int i=0;i<width;i++)
{ //cols
@@ -119,7 +119,7 @@ void iwtf_channel(float *buf, float **weight_a, const int l, const int width, co
FREE2(tmp);
}
#ifdef _OPENMP
-#pragma omp parallel for default(none) shared(weight_a,buf,height,width,st,step,l,wd) schedule(static)
+#pragma omp parallel for shared(weight_a,buf) schedule(static)
#endif
for(int j=0;j<height;j++)
{ // rows
@@ -154,7 +154,7 @@ void dt_iop_equalizer_wtf(float *buf, float **weight_a, const int l, const int w
const int st = step/2;
#ifdef _OPENMP
-#pragma omp parallel for default(none) shared(weight_a,buf,height,width,st,step,l,wd) private(ch) schedule(static)
+#pragma omp parallel for shared(weight_a,buf) private(ch) schedule(static)
#endif
for(int j=0;j<height;j++)
{ // rows
@@ -177,7 +177,7 @@ void dt_iop_equalizer_wtf(float *buf, float **weight_a, const int l, const int w
FREE2(tmp);
}
#ifdef _OPENMP
-#pragma omp parallel for default(none) shared(weight_a,buf,height,width,st,l,step,wd) private(ch) schedule(static)
+#pragma omp parallel for shared(weight_a,buf) private(ch) schedule(static)
#endif
for(int i=0;i<width;i++)
{ // cols
@@ -208,7 +208,7 @@ void dt_iop_equalizer_iwtf(float *buf, float **weight_a, const int l, const int
const int wd = (int)(1 + (width>>(l-1)));
#ifdef _OPENMP
-#pragma omp parallel for default(none) shared(weight_a,buf,height,width,st,step,l,wd) schedule(static)
+#pragma omp parallel for shared(weight_a,buf) schedule(static)
#endif
for(int i=0;i<width;i++)
{ //cols
@@ -230,7 +230,7 @@ void dt_iop_equalizer_iwtf(float *buf, float **weight_a, const int l, const int
FREE2(tmp);
}
#ifdef _OPENMP
-#pragma omp parallel for default(none) shared(weight_a,buf,height,width,st,step,l,wd) schedule(static)
+#pragma omp parallel for shared(weight_a,buf) schedule(static)
#endif
for(int j=0;j<height;j++)
{ // rows