[LLVMbugs] [Bug 9607] New: libdispatch false negative -Wuninitialized

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 1 21:23:51 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=9607

           Summary: libdispatch false negative -Wuninitialized
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: cianci66 at mac.com
                CC: llvmbugs at cs.uiuc.edu


-Wuninitialized should warn on the following Grand Central Dispatch code.

#include <dispatch/dispatch.h>

int foo() {
    __block int a;
    dispatch_async(dispatch_get_global_queue(0, 0), ^{
        a = 2;
    });
    return a;
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list