fix warning on gcc