Additional &is_used tags in the Netcontrol and Sumstats frameworks

When running a cluster, these functions only get called in select node types and
could trigger no-caller warnings on stderr.
This commit is contained in:
Christian Kreibich 2022-06-02 22:50:43 -07:00
parent 3ce1db1b5f
commit edef3736fb
2 changed files with 6 additions and 6 deletions

View file

@ -548,7 +548,7 @@ function check_thresholds(ss: SumStat, key: Key, result: Result, modify_pct: dou
return F;
}
function threshold_crossed(ss: SumStat, key: Key, result: Result)
function threshold_crossed(ss: SumStat, key: Key, result: Result) &is_used
{
# If there is no callback, there is no point in any of this.
if ( ! ss?$threshold_crossed )