Author: djasper Date: Sun Oct 25 16:44:55 2015 New Revision: 251262 URL: http://llvm.org/viewvc/llvm-project?rev=251262&view=rev Log: [clang-tidy] Add return value for non-assert builds.
Modified: clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp Modified: clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp?rev=251262&r1=251261&r2=251262&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp (original) +++ clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp Sun Oct 25 16:44:55 2015 @@ -84,6 +84,7 @@ getZeroLiteralToCompareWithForGivenType( default: assert(false && "Unexpected cast kind"); } + return ""; } bool isUnaryLogicalNotOperator(const Stmt *Statement) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits