I suppose if you build a new house with a contractor you get a warranty but when you buy a used house, like most people do, the owner is off the hook once the paperwork is signed for the most part.
If it is found they lied about something or mislead someone or just forgot to include something they can be held liable many years later.
In fact a friend of mine wanted a basement with additional bedrooms added on to her home. I was over there when the builder came and told her she had a big problem.
When they had broken ground to dig the basement they'd found a septic tank. The owner had sold the house to my friend as attached to city sewer. When it all came out the previous owner had bought the house the same way, the owner before him had also bought it as attached to city sewers.
It went back about 4 previous owners and that previous owner had to take care of the charges and other things associated from selling this house with false information. He said he hadn't known but he had it built and should have known it wasn't on city sewer.
The thing is, too, that the city had to pay back all the money it had collected from all those previous owners since they'd been paying for sewer connections they weren't hooked up to.
So even though that original owner hadn't lived there in many years he had sold the house improperly with vital information left off.
When my sister has bought her homes she has had an inspection and accepted the house according to that inspection. When they've sold their house the buyers had it inspected too. She and her husband have had to fix several things over the years that weren't what the inspector wanted to see. When the paperwork was signed though they were out from under the house, they didn't warranty it at all. That's what the inspection is for.
If you watch any of those home buyer shows on TV they always find major stuff wrong and they're on the hook for it because they bought the house.
So I don't think you get a warranty with a used house that someone else has already lived in. It's the buyer that needs to get the house inspected so they'll know mostly what's going on with it.