[LLVMbugs] [Bug 14086] New: Clang's unused-private-field warning seems to be oblivious to what happens in the implementation of a class in an Objective-C file

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 15 07:41:39 PDT 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: ehsan at mozilla.com
                CC: llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list