Since nobody fixed this bug so far I took the patch from Octavio (with a great thanks), tweaked it a little bit (I cannot sign with your key, so I changed the signature but gave your name in changelog and added this bug reference that you forgot), and uploaded on mentors
https://mentors.debian.net/package/cppcheck it should be ready for review. thanks, Gianfranco