DOC: suppress warnings with okwarning in whatsnew

Using the new functionality of @y-p from #6082, suppressing some warnings in the older whatsnew sections.