Have you ever fainted?

For whatever reason, have you ever fainted and if so, was there any warning?