From 6ed57e052dbf603cc8c5cdb31f5404b67ab7c768 Mon Sep 17 00:00:00 2001 From: Gemfield Date: Mon, 15 Apr 2019 12:23:36 -0700 Subject: [PATCH] Fix the return value of ParseFromString (#19262) Summary: Fix the return value of ParseFromString. Pull Request resolved: https://github.com/pytorch/pytorch/pull/19262 Differential Revision: D14937605 Pulled By: ezyang fbshipit-source-id: 3f441086517186a075efb3d74f09160463b696b3 --- caffe2/utils/proto_utils.h | 1 + 1 file changed, 1 insertion(+) diff --git a/caffe2/utils/proto_utils.h b/caffe2/utils/proto_utils.h index 22ccc63..7014b0c 100644 --- a/caffe2/utils/proto_utils.h +++ b/caffe2/utils/proto_utils.h @@ -55,6 +55,7 @@ namespace TextFormat { inline bool ParseFromString(const string& spec, MessageLite* proto) { LOG(FATAL) << "If you are running lite version, you should not be " << "calling any text-format protobuffers."; + return false; } } // namespace TextFormat -- 2.7.4