fix warning reg. unused variable

a leftover from 07abb7f
Merge pull request #1005 from Jojo-Schmitz/enum-class

convert as many "enum" as possible to "enum class", and make them ": char" in the due course #6
Merge pull request #1013 from Jojo-Schmitz/warnings

fix warning reg. unused variable