[VD/GBM] Remove wreturn-type warning. 77/229177/1 accepted/tizen/unified/20200402.155650 submit/tizen/20200331.011252
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 30 Mar 2020 04:47:11 +0000 (13:47 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 30 Mar 2020 06:50:02 +0000 (15:50 +0900)
Although this is OPEN-P and it is unreachable code,
add workaround for wreturn-type.

Change-Id: Idf11044b927407ae7d3bd241d58d41588073ad96
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
tensorflow/lite/kernels/lstm.cc

index b57e2883b05232325d55ae9e6a08ed142b9a2dbb..fc9b0421329f0640e8a87c2b1b129ba85cbfed31 100644 (file)
@@ -743,6 +743,8 @@ void* Init(TfLiteContext* context, const char* buffer, size_t length) {
     case kTfLiteLSTMBasicKernel:
       return basic::Init(context, buffer, length);
   }
+  assert(false);
+  return nullptr;
 }
 void Free(TfLiteContext* context, void* buffer) {
   gemm_support::DecrementUsageCounter(context);
@@ -758,6 +760,8 @@ TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
     case kTfLiteLSTMBasicKernel:
       return basic::Prepare(context, node);
   }
+  assert(false);
+  return kTfLiteError;
 }
 
 TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
@@ -768,6 +772,8 @@ TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
     case kTfLiteLSTMBasicKernel:
       return basic::Eval(context, node);
   }
+  assert(false);
+  return kTfLiteError;
 }
 
 }  // namespace lstm