Don't put out "return" in outputtrans if action is not tested
authorbruce <none@none>
Wed, 21 Jan 1987 15:36:18 +0000 (15:36 +0000)
committerbruce <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

index 408433f..6d05859 100644 (file)
@@ -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--)