]> git.ipfire.org Git - thirdparty/bird.git/commit
Filter: Ensure that all expressions declared return type
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 3 Mar 2022 19:34:44 +0000 (20:34 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Mon, 27 Jun 2022 19:13:31 +0000 (21:13 +0200)
commit9b302c133f02f96edc5caa769dfd21dc9ef038b5
tree1a2bffd1de85eb55be93d2549d3a99a0013bebb1
parentcde8094c1f81a74d8a434c4cbf41b4d9183e2879
Filter: Ensure that all expressions declared return type

All instructions with a return value (i.e. expressions, ones with
non-zero outval, third argument in INST()) should declare their return
type. Check that automatically by M4 macros.

Set outval of FI_RETURN to 0. The instruction adds one value to stack,
but syntactically it is a statement, not an expression.

Add fake return type declaration to FI_CALL, otherwise the automatic
check would fail builds.
filter/decl.m4
filter/f-inst.c