core: Cleanup warnings