[LLVMbugs] [Bug 13184] New: Objective-C warnings without -W switches

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 22 17:31:01 PDT 2012


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

             Bug #: 13184
           Summary: Objective-C warnings without -W switches
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: arthur.j.odwyer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


cat >test.m <<EOF
@class C;
void foo() { [C bar]; }
EOF
clang -c test.m

This test case produces two warnings, which is correct, and great, but there's
no way to suppress the diagnostics.

I'm filing this as a bug per Ted Kremenek's advice in this thread --- referring
to a different and I-think-now-fixed Objective-C warning, but presumably still
applicable: "Please file a Bugzilla PR, so we can track fixing this."
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-April/021103.html


test.m:2:15: warning: receiver 'C' is a forward class and corresponding
@interface may not exist
void foo() { [C bar]; }
              ^
test.m:1:8: note: forward declaration of class here
@class C;
       ^
test.m:2:14: warning: class method '+bar' not found (return type defaults to
'id')
void foo() { [C bar]; }
             ^~~~~~~
2 warnings generated.

-- 
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