If updating your firmware by your original product code then you are good, but if u change the product code to update it to a diff firmware ex: APAC code to EURO code then Yes it will void it.
You can still get warranty by doing it , just don't get caught and revert everything back to original