OpenMP 'for' 陳述式中的增量格式不當
備註
OpenMP for 循環的遞增部分必須使用運算子左邊和右邊的索引變數。
Example
下列範例會產生 C3019:
// C3019.cpp
// compile with: /openmp
int main()
{
int i = 0, j = 1, n = 3;
#pragma omp parallel
{
#pragma omp for
for (i = 0; i < 10; i = j + n) // C3019
// Try the following line instead:
// for (i = 0; i < 10; i++)
j *= 2;
}
}