Changeset: 0c4e1e621fd9 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0c4e1e621fd9
Modified Files:
        monetdb5/mal/mal_parser.c
Branch: Jul2012
Log Message:

Removed dead code.
Coverity.


diffs (26 lines):

diff --git a/monetdb5/mal/mal_parser.c b/monetdb5/mal/mal_parser.c
--- a/monetdb5/mal/mal_parser.c
+++ b/monetdb5/mal/mal_parser.c
@@ -1703,9 +1703,7 @@ parseAssign(Client cntxt, int cntrl)
                default:
                case 3: goto part3;
                }
-               skipToEnd(cntxt);
-               pushInstruction(curBlk, curInstr);
-               return;
+               /* unreachable */
        }
 /*
  * We have so far the LHS part of an assignment. The remainder is
@@ -1749,10 +1747,7 @@ FCNcallparse2:
                default:
                case 3: goto part3;
                }
-               skipSpace(cntxt);
-               if (currChar(cntxt) != ';')
-                       parseError(cntxt, "';' expected\n");
-               goto part3;
+               /* unreachable */
        }
        /* Handle the ordinary assignments and expressions */
        switch (term(cntxt, curBlk, &curInstr, 2)) {
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to