Add warning when adding duplicate constraints