ast: Avoid cppcheck warning