From acb1ef68f5aea3b6f7f1e14db588b74134719b5e Mon Sep 17 00:00:00 2001 From: Daniel Trebbien Date: Mon, 26 Feb 2018 13:42:07 -0800 Subject: [PATCH] Add missing `override' (#17098) This fixes a warning produced by clang: ./tensorflow/core/common_runtime/gpu/gpu_device.h:70:10: warning: 'FillContextMap' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] Status FillContextMap(const Graph* graph, ^ ./tensorflow/core/common_runtime/device.h:124:18: note: overridden virtual function is here virtual Status FillContextMap(const Graph* graph, --- tensorflow/core/common_runtime/gpu/gpu_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/core/common_runtime/gpu/gpu_device.h b/tensorflow/core/common_runtime/gpu/gpu_device.h index c88daa8..d817c7d 100644 --- a/tensorflow/core/common_runtime/gpu/gpu_device.h +++ b/tensorflow/core/common_runtime/gpu/gpu_device.h @@ -68,7 +68,7 @@ class BaseGPUDevice : public LocalDevice { const TensorReferenceVector& tensor_refs) override; Status FillContextMap(const Graph* graph, - DeviceContextMap* device_context_map); + DeviceContextMap* device_context_map) override; void Compute(OpKernel* op_kernel, OpKernelContext* context) override; -- 2.7.4