diff options
author | James Keeling <jtkeeling@google.com> | 2018-06-13 14:20:55 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-06-13 14:26:37 -0700 |
commit | 40e4beb2c6fcc41852e17ec3996f5dfca8f053df (patch) | |
tree | f3641eaa3b7933831bc379294ef28f58db6d4f52 /tensorflow/stream_executor/stream.cc | |
parent | e1296c15a32cac020160a1c89002dc561333c66b (diff) |
Add return statement to end of ToVlogString(dnn::DataType data_type)
Whilst the switch statement covers all possible enum values, the compiler still complains that it reaches the end of the function without returning a value.
I add an "unknown" string, mirroring the one in the function just above.
PiperOrigin-RevId: 200452885
Diffstat (limited to 'tensorflow/stream_executor/stream.cc')
-rw-r--r-- | tensorflow/stream_executor/stream.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/stream_executor/stream.cc b/tensorflow/stream_executor/stream.cc index 4a98cfe164..0cd0790a72 100644 --- a/tensorflow/stream_executor/stream.cc +++ b/tensorflow/stream_executor/stream.cc @@ -192,6 +192,7 @@ string ToVlogString(dnn::DataType data_type) { case dnn::DataType::kInt8: return "dnn::DataType::kInt8"; } + return "unknown DataType"; } // Used together with PARAM to VLOG calls made to the stream. Intended |