fixing warnings in examples