Fix warning of different definition and implementation