[llvm-bugs] [Bug 51666] New: -Wsign-compare complains on #pragma	omp taskloop
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Sun Aug 29 11:45:06 PDT 2021
    
    
  
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: unassignedclangbugs at nondot.org
          Reporter: lebedev.ri at gmail.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210829/55616d14/attachment.html>
    
    
More information about the llvm-bugs
mailing list