aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index ada6ceb68a..f583ad1606 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -1268,9 +1268,10 @@ Sema::DeclTy *Sema::ActOnFinishFunctionBody(DeclTy *D, StmtTy *Body) {
/// call, forming a call to an implicitly defined function (per C99 6.5.1p2).
ScopedDecl *Sema::ImplicitlyDefineFunction(SourceLocation Loc,
IdentifierInfo &II, Scope *S) {
- if (getLangOptions().C99) // Extension in C99.
+ // Extension in C99. Legal in C90, but warn about it.
+ if (getLangOptions().C99)
Diag(Loc, diag::ext_implicit_function_decl, II.getName());
- else // Legal in C90, but warn about it.
+ else
Diag(Loc, diag::warn_implicit_function_decl, II.getName());
// FIXME: handle stuff like: