Fix Compiler warnings in mesapd module
Bumping the CI's compiler version (compare #302 and !796) reviled some bad code quality in the mesapd module that needs fixing.
Job [#1401358](https://i10git.cs.fau.de/walberla/walberla/-/jobs/1401358) failed for 8f4e1ff6c1532fd6b29fa0b4d931d45ccfee3e78:
task