Skip to content
Snippets Groups Projects
Commit 5d350997 authored by Alexander Kruschewsky's avatar Alexander Kruschewsky
Browse files

Fix Clang compile by adding effectless command to variable studentIdx

parent 675ccb14
Branches
Tags
2 merge requests!45Merge branch 'release/v1.2.0' into 'master',!43Neue Prüfungsordnung
......@@ -280,6 +280,9 @@ void DynexiteExam::insertData(
// Ignore header line, ignore empty, non-attendant students
for (auto studentIdx = 0; const auto &line : c.data | std::views::drop(1)) {
// This statement does nothing but avoids -Wunused-but-set-variable Error with Clang
(void)studentIdx;
// Skip non-attending students
if (line[0].isEmpty())
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment