https://bugs.llvm.org/show_bug.cgi?id=51666

            Bug ID: 51666
           Summary: -Wsign-compare complains on #pragma omp taskloop
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: OpenMP
          Assignee: unassignedclangb...@nondot.org
          Reporter: lebedev...@gmail.com
                CC: llvm-bugs@lists.llvm.org

https://godbolt.org/z/77z1r6WKP

void callee(int);

void entry(int width) {
#pragma omp taskloop
for(int i = 0; i < width; ++i)
    callee(i);
}

<source>: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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to