Fix warning of undecleared function