I ignore any company with a profit warning and if I already have a position I sell immediately, but that rarely happens. If your intention is to make money, why would you invest in a company issuing profit warnings or losses? Beats logic.
A successful man is not he who gets the best, it is he who makes the best from what he gets.