warning fix from a patch by Gustavo Sverzut Barbieri, barbieri gmail com