Skip to content

Commit

Permalink
Eliminate warnings in lpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoyne committed Jun 24, 2014
1 parent 6661c6a commit 0153987
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions libaegisub/lua/modules/lpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,17 +349,6 @@ static void printpatt (Instruction *p) {
}
}


static void printcap (Capture *cap) {
printcapkind(cap->kind);
printf(" (idx: %d - size: %d) -> %p\n", cap->idx, cap->siz, cap->s);
}


static void printcaplist (Capture *cap) {
for (; cap->s; cap++) printcap(cap);
}

/* }====================================================== */


Expand Down Expand Up @@ -446,7 +435,7 @@ static const char *match (lua_State *L,
lua_pushlightuserdata(L, stackbase);
for (;;) {
#if defined(DEBUG)
printf("s: |%s| stck: %d c: %d ",
printf("s: |%s| stck: %ld c: %d ",
s, stack - getstackbase(L, ptop), captop);
printinst(op, p);
#endif
Expand Down

0 comments on commit 0153987

Please sign in to comment.