From: Derek Murray Date: Fri, 23 Mar 2018 17:12:05 +0000 (-0700) Subject: Silence compilation warning in allocator.h X-Git-Tag: tflite-v0.1.7~106^2^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b732d528ba120a6da32100f9991a353128114e8;p=platform%2Fupstream%2Ftensorflow.git 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 --- 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; }