Fixed #3314 (cppcheck incorrectly reporting Syntax error.)