fix build warning
Merge pull request #1666 from antograssiot/3.0

3.0 fix build warning