There is more to this story than you are telling.
1) It is illegal for the "entire" warranty to be voided. The manufacturer rep (dealer) must provide evidence that the act or modification was the direct cause of the failure. Even then, only the warranty on that part is denied. They know this...