relocate warnings to proper place in compile