17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 09:49:19 +02:00

refactor(sonar): add default cases to switch statements (cpp:S3562)

This commit is contained in:
jerrrrycho
2026-10-10 16:22:01 +02:00
parent 6b77352293
commit eb82bf360b
3 changed files with 25 additions and 0 deletions

View File

@@ -300,6 +300,8 @@ basic_controller::run() -> int {
}
break;
}
default:
break;
}
// accumulator was published at least once, next ld(i) operation will start a new rung
m_popstack = true;
@@ -332,6 +334,8 @@ basic_controller::run() -> int {
*/
break;
}
default:
break;
}
// accumulator was published at least once, next ld(i) operation will start a new rung
m_popstack = true;
@@ -354,11 +358,16 @@ basic_controller::run() -> int {
std::get<basic_element::counter>(target.data).count_value = 0;
break;
}
default:
break;
}
// accumulator was published at least once, next ld(i) operation will start a new rung
m_popstack = true;
break;
}
default: {
break;
}
}
++programline;
}