[relate] Fix unused variable warnings