Open Quuxplusone opened 3 years ago
https://godbolt.org/z/77z1r6WKP
void callee(int);
void entry(int width) {
for(int i = 0; i < width; ++i) callee(i); }
:5:5: warning: comparison of integers of different signs: 'unsigned long' and 'int' [-Wsign-compare] for(int i = 0; i < width; ++i)
1 warning generated. Compiler returned: There is no `unsigned long` in the source code, but presumably there is something OMP-internal there. I don't see why this is being diagnosed, nor am i seeing how to nicely workaround that.
@Alexey, do we even need to extend the size even if we have no collapse clause?
Regardless, we should not emit warnings.
https://godbolt.org/z/77z1r6WKP
void callee(int);
void entry(int width) {
pragma omp taskloop
for(int i = 0; i < width; ++i) callee(i); }