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

             Bug #: 14086
           Summary: Clang's unused-private-field warning seems to be
                    oblivious to what happens in the implementation of a
                    class in an Objective-C file
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


I get the following when building Mozilla:

450.00 In file included from
/Users/ehsanakhgari/moz/mozilla-central/widget/cocoa/GfxInfo.mm:11:
450.00 Warning: -Wunused-private-field in
/Users/ehsanakhgari/moz/mozilla-central/widget/cocoa/GfxInfo.h: private field
'mRendererIDs' is not used
450.00 /Users/ehsanakhgari/moz/mozilla-central/widget/cocoa/GfxInfo.h:80:12:
warning: private field 'mRendererIDs' is not used [-Wunused-private-field]
450.00   uint32_t mRendererIDs[16];
450.00            ^

mRendererIDs is indeed referenced from inside GfxInfo.mm:
<http://mxr.mozilla.org/mozilla-central/search?string=mRendererIDs&filter=[Mm]RendererIDs>

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to