With reference to https://sourceforge.net/p/cppcheck/discussion/general/thread/22200d529f/ in which Mr Marjamäki suggests reducing the scope of a variable. In C99 and above, you can, if you wish, declare variables not only at the top of a function, but throughout the function. This is a feature of other languages too, but is not so prevalent in even recent C. Programmers working on heavily standardised and safety critical code may find it frustrating that cppcheck does not differentiate between declaring...