lint: fix possible nullptr deref in *pwr
lint: fix uselessAssignmentArg start_index
lint: fix syntax error caused by ifdef mess
Merge pull request #2103 from N8Fear/cppcheck_new

lint: fix some issues introduced by the latest PRs