Make warning suppression compiler-conditional.