[Nasm-commits] [nasm:preproc-rewrite] preproc.c: removed obsolete "dead branch" checking from error()

nasm-bot for Keith Kanios keith at kanios.net
Thu Jun 4 19:56:26 PDT 2020


Commit-ID:  257596fb5b7e2c04078298ba67bf8fa0073229e7
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=257596fb5b7e2c04078298ba67bf8fa0073229e7
Author:     Keith Kanios <keith at kanios.net>
AuthorDate: Mon, 2 Aug 2010 22:32:08 -0500
Committer:  Keith Kanios <keith at kanios.net>
CommitDate: Mon, 2 Aug 2010 22:32:08 -0500

preproc.c: removed obsolete "dead branch" checking from error()



---
 preproc.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/preproc.c b/preproc.c
index 483e3ac0..30b0ca2e 100644
--- a/preproc.c
+++ b/preproc.c
@@ -4929,14 +4929,6 @@ static void verror(int severity, const char *fmt, va_list arg)
 static void error(int severity, const char *fmt, ...)
 {
     va_list arg;
-
-    /* If we're in a dead branch of IF or something like it, ignore the error */
-	if ((istk != NULL) &&
-		(istk->expansion != NULL) &&
-		(istk->expansion->type == EXP_IF) &&
-		!emitting(istk->expansion->def->state))
-        return;
-
     va_start(arg, fmt);
     verror(severity, fmt, arg);
     va_end(arg);


More information about the Nasm-commits mailing list