fix PRQA-C level 6 warnings