Skip to content

Commit 4611f23

Browse files
committed
fix: make function "number of arguments" property warnings non-fatal
Previously, these warnings caused FORM to terminate with a failure status.
1 parent b35cfee commit 4611f23

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

check/fixes.frm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4440,9 +4440,12 @@ assert result("testCF3") =~ expr("d(mu2,mu1,mu3)*e(mu2,mu1,mu3)*f(mu2,mu1,mu3)")
44404440
*--#[ Issue766 :
44414441
* Unintended "&" in some warning messages
44424442
CF f(s,s);
4443+
CF f>=x<=x;
44434444
ModuleOption local,$a;
44444445
.end
4446+
assert return_value == 0
44454447
assert warning?("Excess information in symmetric properties")
4448+
assert warning?("Illegal information in number of arguments properties")
44464449
assert warning?("Undefined $-variable")
44474450
*--#] Issue766 :
44484451
*--#[ PullReq535 :

sources/names.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,6 @@ retry:;
15481548
|| ( StrICont(par,(UBYTE *)"args") == 0 ) ) {}
15491549
else {
15501550
Warning("Illegal information in number of arguments properties currently ignored");
1551-
error = 1;
15521551
}
15531552
*s = cc;
15541553
}
@@ -1572,7 +1571,6 @@ retry:;
15721571
|| ( StrICont(par,(UBYTE *)"args") == 0 ) ) {}
15731572
else {
15741573
Warning("Illegal information in number of arguments properties currently ignored");
1575-
error = 1;
15761574
}
15771575
*s = cc;
15781576
}

0 commit comments

Comments
 (0)