Actually emission code is a Federal law, unfortunately modifying / removing / tampering with is an automatic warranty void.
The MMWA doesn't protect a buyer from tampering with a Federally mandated system.
The consumer would be responsible for all court fee's and then repairs (if any needed) to fix the system and or engine problems.
Most dealer's are not going to challenge you on this or deny a claim due to having a CC.
If you really want to get technical DOT can pull you over and do an inspection while also ticketing you for tampering with the system and driving on federal road.
But it's your 45-60k truck, do what you want lol.
@Grumpy Bear you would be suprised what the T1 pcm's will tell a dealer now. They knew I had changed out my tag lights to LED's due to the pcm throwing an internal code for a voltage fluctuation.
Luckily my dealer service manager is a friend and let me see what was going on. It might not be throwing a CEL on the dash, but when GM plugs in, they know a lot more than people think.
I work for Subaru of America, and our engineer's have to go out to dealers all the time and plug into Wrx's / Sti's to verify warranty claims on blown engines.
You get there and they look completely stock, Some people even go as far as repainting the bolt heads to make it seem they have never been broken loose. As soon as the engineer's plug into the pcm, they can tell if the engine has had modifications, even as something as small as a high flow filter increases air flow against the maf which the pcm flags and saves for a period of time.
Now are they gonna void a warranty for a K&N filter per say, no. But when they install tuners to the pcm (marry them), it flags the point adjustments we're made to the software and that's how they determine who's fibbing lol.
And for the record, I have a CC on my 2019 LT 5.3. Sooooooooooooooo Bleh!