aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util/example_proto_fast_parsing.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-11-17 15:37:00 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-11-17 15:45:18 -0800
commit54e5000e0b980abe905900599c4493fadae34a15 (patch)
treec1f0751e5565882a77646589360fe090bec3f3fc /tensorflow/core/util/example_proto_fast_parsing.cc
parent8a5610cd9f0b7087c1a7e97071ba1cf9b885315a (diff)
Merge changes from github.
Change: 139516555
Diffstat (limited to 'tensorflow/core/util/example_proto_fast_parsing.cc')
-rw-r--r--tensorflow/core/util/example_proto_fast_parsing.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/core/util/example_proto_fast_parsing.cc b/tensorflow/core/util/example_proto_fast_parsing.cc
index abf8d77f86..f1885bb980 100644
--- a/tensorflow/core/util/example_proto_fast_parsing.cc
+++ b/tensorflow/core/util/example_proto_fast_parsing.cc
@@ -87,6 +87,8 @@ class Feature {
*dtype = DT_INT64;
break;
default:
+ // Initialize variable to avoid compiler warning
+ *dtype = DT_INVALID;
return errors::InvalidArgument("Unsuported datatype.");
}
return Status::OK();