Mute some cppcheck diagnostics messages (it complains about C-style casts and the string 'error' going unused, which are ok)