shithub: mc

Download patch

ref: 6f9d91c5f33ead0351531ca0570da85cfb3e24e8
parent: f52bd3e4ab5dd49a6ca4562bce9b49b226721805
author: Ori Bernstein <[email protected]>
date: Tue Sep 23 09:23:37 EDT 2014

Shut up Clang's static analyzer a bit.

    Remove dead store, assert e != null

--- a/6/simp.c
+++ b/6/simp.c
@@ -1773,6 +1773,7 @@
 {
     size_t i;
 
+    assert(e != NULL);
     switch (exprop(e)) {
         case Oslice:
             if (exprop(e->expr.args[0]) == Oarr)
--- a/parse/tok.c
+++ b/parse/tok.c
@@ -135,7 +135,6 @@
     while (1) {
         c = peek();
         if (!ignorenl && c == '\n') {
-            ignorenl = 0;
             break;
         } else if (c == '\\') {
             ignorenl = 1;