From 8ad7f049eaddffb59bd0dafce9cc823420f29cb2 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 5 Jul 2018 15:17:54 +0200 Subject: [PATCH] Fix empty statements * Add break in default case to avoid potential problems with future case statements following the default case. * Remove empty statement. Signed-off-by: Stefan Weil --- src/lstm/network.cpp | 2 +- src/opencl/openclwrapper.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lstm/network.cpp b/src/lstm/network.cpp index 1607af066e..4ce0354f18 100644 --- a/src/lstm/network.cpp +++ b/src/lstm/network.cpp @@ -258,7 +258,7 @@ Network* Network::CreateFromFile(TFile* fp) { network = new FullyConnected(stub.name_, stub.ni_, stub.no_, stub.type_); break; default: - ; + break; } if (network) { network->training_ = stub.training_; diff --git a/src/opencl/openclwrapper.cpp b/src/opencl/openclwrapper.cpp index f352d2b3a4..8f569551f4 100644 --- a/src/opencl/openclwrapper.cpp +++ b/src/opencl/openclwrapper.cpp @@ -2304,7 +2304,6 @@ static double thresholdRectToPixMicroBench(GPUEnv* env, stop = mach_absolute_time(); if (retVal == 0) { time = ((stop - start) * (double)info.numer / info.denom) / 1.0E9; - ; } else { time = FLT_MAX; }