And I think you'd have a difficult time getting a judge to hear a case where a buyer has signed a waiver of the sort that home inspectors require. Home inspectors - and contractors - are not guaranteeing that the home is free of defects; they are providing an expert opinion of the systems and condition of the property based on a visual inspection, and there is the sad fact that, if they miss something big, it's generally going to be up to the buyer to bear the burden.
All the best,
If you are talking about a specific situation, you need the advice of an attorney.
The agreement you sign has a paragraph protecting them for errors and omissions.
If you are selling, you should have your home inspected so you know what might turn up and gain the opportunity to rectify some of the issues.
Hire someone who comes by recommendation.
No one is perfect, just as no house is perfect; although it might be perfect for you.