Parcourir la source

[4203] Removed the unreachable exit

Francis Dupont il y a 9 ans
Parent
commit
e58c97a735
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/eval/lexer.ll

+ 1 - 1
src/lib/eval/lexer.ll

@@ -145,7 +145,7 @@ EvalContext::scanStringBegin()
     buffer = yy_scan_bytes(string_.c_str(), string_.size());
     if (!buffer) {
         error("cannot scan string");
-        exit(EXIT_FAILURE);
+	// error throws an exception so this can't be reached
     }
 }