http://llvm.org/bugs/show_bug.cgi?id=21276
Bug ID: 21276
Summary: Missing '-Wreturn-type' warning for 'main' having no
return statement in C89 mode
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Clang does not emit "control reaches end of non-void function [-Wreturn-type]"
warning for 'main' having no return statement in C89 mode (-std=c89, gnu89).
Clang adds implicit-return-zero in C89 mode. But, since the C89 standard does
not require it, wouldn't it be better to emit warning?
--
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