In the USA, there is the The Magnuson-Moss Warranty Act that was written to allow owners to use aftermarket oil and air filters, etc. The SEMA aftermarket industry often extrapolates this to claim that your warranty will be unaffected by aftermarket modifications (in Canada, there is no such law). However, if the manufacturer refuses warranty coverage, good luck fighting them.