It doesn't void the warranty, but it may influence the decision to honour a particular warranty claim on something that the ECU controls (so your engine, perhaps your transmission, etc - but again, only if they can prove that the flash was likely the cause. Flashing your ECU won't have any...