Merge pull request #1708 from Yann-lms/warnings

Add possibility to add compilation warnings