bruno added a comment. Hi Alex, thanks for following up with this!
================ Comment at: lib/Sema/SemaDecl.cpp:11819 + // Warn if K&R function is defined without previous declaration + // declaration. This warning is issued only if the difinition itself + // does not provide a prototype. Only K&R definitions do not ---------------- There's an extra 'declaration' here ================ Comment at: lib/Sema/SemaType.cpp:4189 + if (D.getFunctionDefinitionKind() == FDK_Declaration && + FTI.NumParams == 0 && !LangOpts.CPlusPlus) { + S.Diag(DeclType.Loc, diag::warn_strict_prototypes) ---------------- No need for the curly braces here! Repository: rL LLVM https://reviews.llvm.org/D16533 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits