Gaddafi warned of military action