summaryrefslogtreecommitdiff
path: root/caffe2/proto
diff options
context:
space:
mode:
authorTongzhou Wang <tongzhou.wang.1994@gmail.com>2018-09-07 11:12:02 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2018-09-07 11:26:58 -0700
commite80f7e1f6461da7f49bb35fc9e2427e0f0bb570b (patch)
tree279941354705081fec0e7414ae0189c5e1b3c86e /caffe2/proto
parent91089a7e170798fb385b51dca2137cc4473a4566 (diff)
downloadpytorch-e80f7e1f6461da7f49bb35fc9e2427e0f0bb570b.tar.gz
pytorch-e80f7e1f6461da7f49bb35fc9e2427e0f0bb570b.tar.bz2
pytorch-e80f7e1f6461da7f49bb35fc9e2427e0f0bb570b.zip
Fix more warnings (#11320)
Summary: also a missing space in fft error message Pull Request resolved: https://github.com/pytorch/pytorch/pull/11320 Differential Revision: D9676012 Pulled By: SsnL fbshipit-source-id: a636e5fce042198510c8e456fa51fde714da8348
Diffstat (limited to 'caffe2/proto')
-rw-r--r--caffe2/proto/caffe2_pb.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/caffe2/proto/caffe2_pb.h b/caffe2/proto/caffe2_pb.h
index 291cb6bfe8..0a08c8db24 100644
--- a/caffe2/proto/caffe2_pb.h
+++ b/caffe2/proto/caffe2_pb.h
@@ -44,9 +44,6 @@ inline CAFFE2_API DeviceType ProtoToType(const caffe2::DeviceTypeProto p) {
". If you have recently updated the caffe2.proto file to add a new "
"device type, did you forget to update the ProtoToType() and TypeToProto"
"function to reflect such recent changes?");
- // The below code won't run but is needed to suppress some compiler
- // warnings.
- return DeviceType::ONLY_FOR_TEST;
}
}
@@ -77,9 +74,6 @@ inline CAFFE2_API DeviceTypeProto TypeToProto(const DeviceType& t) {
". If you have recently updated the caffe2.proto file to add a new "
"device type, did you forget to update the ProtoToType() and TypeToProto"
"function to reflect such recent changes?");
- // The below code won't run but is needed to suppress some compiler
- // warnings.
- return PROTO_ONLY_FOR_TEST;
}
}