Remove redundant warnings