[LLVMbugs] [Bug 4921] New: No warning for control reaching end of non-void function

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Sep 7 16:02:46 PDT 2009


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


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.



More information about the llvm-bugs mailing list