treat warnings as errors in samples

treat warnings as errors in samples