changeset 78:4cc1c575951f

No need to warn about nested comments twice.
author David A. Holland
date Mon, 10 Jun 2013 20:17:23 -0400
parents 123168887da8
children 4a5717f9b964
files output.c
diffstat 1 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/output.c	Mon Jun 10 20:12:37 2013 -0400
+++ b/output.c	Mon Jun 10 20:17:23 2013 -0400
@@ -99,20 +99,11 @@
 filter_output(const struct place *p, const char *buf, size_t len)
 {
 	size_t pos, start;
-	struct place p2;
 
 	start = 0;
 	for (pos = 0; pos < len - 1; pos++) {
 		if (buf[pos] == '/' && buf[pos+1] == '*') {
-			if (incomment && warns.nestcomment) {
-				p2 = *p;
-				p2.column += pos;
-				complain(p, "Warning: %c%c within comment",
-					 '/', '*');
-				if (mode.werror) {
-					complain_failed();
-				}
-			} else if (!incomment) {
+			if (!incomment) {
 				if (pos > start) {
 					dowrite(buf + start, pos - start);
 				}