From 789a11d2d8b07f17f5ea9e2f884142629cef6951 Mon Sep 17 00:00:00 2001
From: Bill Currie <bill@taniwha.org>
Date: Sun, 23 Sep 2001 04:08:28 +0000
Subject: [PATCH] don't print the file or line number for "warnings treated as
 errors"

---
 tools/qfcc/source/expr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c
index 8b05ea87c..323e74d78 100644
--- a/tools/qfcc/source/expr.c
+++ b/tools/qfcc/source/expr.c
@@ -139,7 +139,8 @@ warning (expr_t *e, const char *fmt, ...)
 
 	if (options.warn_error) {
 		options.warn_error = 0;		// only want to do this once
-		error (e, "warnings treated as errors");
+		fprintf (stderr, "%s: warnings treated as errors\n", "qfcc");
+		pr_error_count++;
 	}
 	
 	va_start (args, fmt);