[LLVMbugs] [Bug 3544] New: Incorrect warning when compiling AIUtilities

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 10 21:24:52 PST 2009


           Summary: Incorrect warning when compiling AIUtilities
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: catfish.man at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Steps to reproduce:
1) Check out the Adium source code from svn://svn.adiumx.com/adium/trunk
2) Attempt to compile with clang using the xcode project in

Framework/Source/AIStringAdditions.m:155:31: warning: incompatible pointer
types initializing 'NSString *', expected 'NSMutableString *'
        NSMutableString *newString = [NSMutableString string];
1 diagnostic generated.

This is incorrect, because the method +string declared on NSString returns an
id. It appears that clang is looking at the method -string declared in
AIStringAdditions.h, which does return an NSString. Commenting that declaration
out makes the warning go away.

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