Merge pull request #9271 from leoetlino/warnings Fix several warnings and only enable extra warnings for our own code