public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9acc354
)
Don't put out "return" in outputtrans if action is not tested
author
bruce
<none@none>
Wed, 21 Jan 1987 15:36:18 +0000
(15:36 +0000)
committer
bruce
<none@none>
Wed, 21 Jan 1987 15:36:18 +0000
(15:36 +0000)
otherwise compiling trans.c give warning about statment not reached.
modules/src/em_opt/outputdfa.c
patch
|
blob
|
history
diff --git
a/modules/src/em_opt/outputdfa.c
b/modules/src/em_opt/outputdfa.c
index
408433f
..
6d05859
100644
(file)
--- a/
modules/src/em_opt/outputdfa.c
+++ b/
modules/src/em_opt/outputdfa.c
@@
-153,7
+153,8
@@
outputdotrans()
fprint(ofile,"\t\t\tgoto free%d;\n",patterns[s].m_len);
}
}
- fprint(ofile,"\t\treturn;\n");
+ if(!seennontested)
+ fprint(ofile,"\t\treturn;\n");
}
fprint(ofile,"\t}\n");
for(i=longestpattern;i>0;i--)