From 1b732d528ba120a6da32100f9991a353128114e8 Mon Sep 17 00:00:00 2001 From: Derek Murray Date: Fri, 23 Mar 2018 10:12:05 -0700 Subject: [PATCH] Silence compilation warning in allocator.h Some builds report the following warning (even though LOG(FATAL) is terminal): ``` ./tensorflow/core/framework/device_base.h(188): warning: missing return statement at end of non-void function "tensorflow::DeviceBase::GetScopedAllocator" ``` PiperOrigin-RevId: 190235863 --- tensorflow/core/framework/device_base.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tensorflow/core/framework/device_base.h b/tensorflow/core/framework/device_base.h index 52b9077..8473b22 100644 --- a/tensorflow/core/framework/device_base.h +++ b/tensorflow/core/framework/device_base.h @@ -185,6 +185,7 @@ class DeviceBase { virtual Allocator* GetScopedAllocator(AllocatorAttributes attr, int64 step_id) { LOG(FATAL) << "Device does not implement GetScopedAllocator()"; + return nullptr; } virtual ScopedAllocatorMgr* GetScopedAllocatorMgr() const { return nullptr; } -- 2.7.4