list: fix unused var warning.