This patch is to fix the problem of specifying static local variables on the data-sharing attribute clause. Currently, clang flags it as errors.
int main() {
static int x;
int i;
#pragma omp parallel for reduction(+:x)
for (i=0; i<10; i++) {
x = 1;
}
}