It looks like the WARNING is here
if (level >= _countof(beltGradeByLevelTable))
You could make level
(unsigned int legel)
or do
if (static_cast<unsigned int>(level) >= _countof(beltGradeByLevelTable))
or ignore or disable the warning.
2
solved c++: Comparison between signed and unsigned integer expressions [closed]