do not warn for missing declarations if type is invalid