Code quality fixes: Add suppressions to certain patterns in cppcheck and fix a bunch of issues
Add a suppression file to cppcheck (shown in gitlab as "code quality") and fix a collection of issues.
This has changed the number of "Code Quality" issues reported from around 550 to 380.
Edited by Sune Vuorela