Add warning for constructors and destructors