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

           Summary: No warning for control reaching end of non-void function
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


I'm using the version of Clang/LLVM that comes with Mac OSX 10.6.0.

When compiling the following Objective-C code:

- (int)foo {
}

I notice that neither the compiler, nor the analyzer, notice that the code does
not return. Compiling with GCC I get the expected "control reaches end of
non-void function".

I'm compiling with -Wall so I'd expect to get something.


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