Silence unused var error in index2