Skip to content

Commit

Permalink
Fix empty statements
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
stweil committed Jul 5, 2018
1 parent 4ca452d commit 8ad7f04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/lstm/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down
1 change: 0 additions & 1 deletion src/opencl/openclwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8ad7f04

Please sign in to comment.