warining by gcc-4.8: unused local typedef