Fix CARTree warning.
Merge pull request #2580 from iglesias/fix_warnings

Fix CARTree warning.