From: Gemfield Date: Mon, 15 Apr 2019 19:23:36 +0000 (-0700) Subject: Fix the return value of ParseFromString (#19262) X-Git-Tag: accepted/tizen/6.5/unified/20211028.231830~230 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ed57e052dbf603cc8c5cdb31f5404b67ab7c768;p=platform%2Fupstream%2Fpytorch.git 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 --- 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