Clean unused stuffs and suppress warnings during compilation