fix warnings for gcc