Fix compile error(variable size set but not used) on g++4.6