[fix] warning: implicit declaration of function