If you simply enable Developer options in Android, that does not void your warranty. However, if you use these options to perform a bootloader unlock or try to modify your system then the warranty will be void.