Don't warn about expected_base if it's an ancestor of the proper base