EU warns Turkish army over vote