Skip to content

Commit

Permalink
pic: "chop" does not work
Browse files Browse the repository at this point in the history
In commit c6c12d9... dated 04 Nov 2014, "Some gcc warnings removed,"
the line
chop_ap[chop++] = ap;
was deleted from file pic/linegen.c.
gcc -Wall does flag this line with the message that chop_ap is
an unused variable. It is right about that. However, the variable
chop is used, and if it is not incremented, it remains at 0 and
the "chop" attribute won't work.
Solution: Add chop++ back in.
  • Loading branch information
reffort committed Sep 9, 2018
1 parent 0ac091c commit 6fa0ad8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pic/linegen.c
Expand Up @@ -145,6 +145,7 @@ obj *linegen(int type)
else
chop2 = ap->a_val.f;
}
chop++;
break;
case FILL:
battr |= FILLBIT;
Expand Down
2 changes: 1 addition & 1 deletion version.mk
@@ -1,2 +1,2 @@
RELEASE = Git snapshot 180903
RELEASE = Git snapshot 180909
#RELEASE = release 160308

0 comments on commit 6fa0ad8

Please sign in to comment.