Default will flashing a stock rom void my warranty ? knox?

So im currently running android 4.4.2 and im really done with the ****ty carrier apps my phone came with, just wondering if flashing a PURE 4.4.2 unbranded stock firmware will void my warranty or trip knox to 0x1. Thanks.