mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
cpitf.c, cp_istrue(), avoid surplus Warning Message when an `if' condition expands to nothing
When in expression if $var ... the variable `var' was undefined, then ngspice printed a surplus warning message > Warning: NULL arithmetic expression in addition to the error message > Error: var: no such variable. ngspice continues to process the conditional construct and evaluates the condition as "FALSE"
This commit is contained in:
@@ -36,7 +36,6 @@ end
|
||||
echo
|
||||
|
||||
echo "expect Error: testvar_d: no such variable."
|
||||
echo "expect Warning: NULL arithmetic expression"
|
||||
* in cp_istrue(): wl!=NULL then wl==NULL names==NULL v==NULL
|
||||
if $testvar_d
|
||||
echo "FAIL: you should not see this"
|
||||
|
||||
Reference in New Issue
Block a user