[Bug #8619] Generator warning fix