cppcheck and clang --analyze fixes
Several small changes to reduce the cppcheck and clang --analyze warnings. Used cppcheck 2.8 and 2.3, and clang 11 and 14. Most of the remaining cppcheck warnings are false positives.
Several small changes to reduce the cppcheck and clang --analyze warnings. Used cppcheck 2.8 and 2.3, and clang 11 and 14. Most of the remaining cppcheck warnings are false positives.