[Warning fix] Fix return type defaults to ‘int’ [-Wreturn-type]

Fix return type defaults to ‘int’ [-Wreturn-type]