Silence div-by-zero and invalid-value warnings