treat warnings as errors in samples
Merge pull request #9010 from ricardoquesada/treat_warnings_as_errors_in_samples

treat warnings as errors in samples