Is this in Schematic or Layout, and do you mean Design Rule Check? Also depends on how you have designed the component.
Tools=> Design Rule Check. Then tick/untick boxes "net pin with no connection and/or Pin not on a Net. Be care ful as this can also mask real errors. What you have is a warning, not an error.