The United States has warned Americans against flying on local airlines in Indonesia because of safety concerns raised by recent accidents .