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

           Summary: Warning about struct tag argument being "visible
                    outside of this function"
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Compiling this with clang (r125414):


#import <Foundation/NSObject.h>

@interface NSObject(Category)
- (BOOL)appendXML:(struct _OFXMLBuffer *)xml;
@end


now produces a warning that it didn't before.

struct-tag.m:4:27: warning: declaration of 'struct _OFXMLBuffer' will not be
visible outside of this function
- (BOOL)appendXML:(struct _OFXMLBuffer *)xml;

This is easily fixable by #import'ing the header that has a typedef for this
struct, but it has never produced a warning before and seems iffy to me. I'm
not enough of an expert on the C spec to say whether this is a regression or a
new correct behavior, though.

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