Skip to content

Commit 80f247d

Browse files
committed
remove another unused variable and a type mismatch
1 parent d991fbe commit 80f247d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

components/omega/src/infra/Error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Error::Error(ErrorCode ErrCode, // [in] error code to assign
135135

136136
// Strip pathname from file argument
137137
std::string Filename;
138-
int Pos = FileWPath.find_last_of("\\/");
138+
auto Pos = FileWPath.find_last_of("\\/");
139139
if (Pos != std::string::npos) {
140140
Filename = FileWPath.substr(Pos + 1);
141141
} else {

components/omega/test/infra/FieldTest.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,8 +850,6 @@ int main(int argc, char **argv) {
850850
if (Data3DI4(Cell, K, Trcr) != RefI4 + Cell + K + Trcr)
851851
++LCount;
852852
for (int TimeLvl = 0; TimeLvl < NTime; ++TimeLvl) {
853-
int Add4 =
854-
TimeLvl * NTracers * NCellsSize * NVertLevels + Add3;
855853
if (Data4DI8(Cell, K, Trcr, TimeLvl) !=
856854
RefI8 + Cell + K + Trcr + TimeLvl)
857855
++LCount;

0 commit comments

Comments
 (0)