Skip to content

Commit 8ad7f04

Browse files
committed
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 <[email protected]>
1 parent 4ca452d commit 8ad7f04

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/lstm/network.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Network* Network::CreateFromFile(TFile* fp) {
258258
network = new FullyConnected(stub.name_, stub.ni_, stub.no_, stub.type_);
259259
break;
260260
default:
261-
;
261+
break;
262262
}
263263
if (network) {
264264
network->training_ = stub.training_;

src/opencl/openclwrapper.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -2304,7 +2304,6 @@ static double thresholdRectToPixMicroBench(GPUEnv* env,
23042304
stop = mach_absolute_time();
23052305
if (retVal == 0) {
23062306
time = ((stop - start) * (double)info.numer / info.denom) / 1.0E9;
2307-
;
23082307
} else {
23092308
time = FLT_MAX;
23102309
}

0 commit comments

Comments
 (0)