I heared installing solar panels on my new roof to heat my pool would void my warranty is this true?

I just want to make sure I was well informed, thanks for any input. If anyone knows of other options to heat my pool with out solar panels please let me know. I should let you know that I do not have enough space nor want panels on my yard either.