Add a warning to use SCANFROM with a moveable ADDOMIT.

This commit is contained in:
Dianne Skoll
2025-09-24 13:02:12 -04:00
parent 23081b556f
commit 604e1b049c
4 changed files with 23 additions and 14 deletions
+7
View File
@@ -1211,6 +1211,13 @@ int ParseRem(ParsePtr s, Trigger *trig, TimeTrig *tim)
}
/* Check for some warning conditions */
if (trig->addomit) {
if (trig->y == NO_YR || trig->m == NO_MON || trig->d == NO_DAY || trig->rep != NO_REP) {
if (trig->scanfrom == NO_SCANFROM) {
Wprint(tr("Warning: Consider using SCANFROM with recurring ADDOMIT"));
}
}
}
if (!s->nonconst_expr) {
if (trig->y != NO_YR && trig->m != NO_MON && trig->d != NO_DAY && trig->until != NO_UNTIL) {
if (DSE(trig->y, trig->m, trig->d) > trig->until) {