[fix] compile warning on gcc