Mercurial > ~dholland > hg > tradcpp > index.cgi
diff output.c @ 78:4cc1c575951f
No need to warn about nested comments twice.
author | David A. Holland |
---|---|
date | Mon, 10 Jun 2013 20:17:23 -0400 |
parents | 337110e7240a |
children | 27c9aafcaca1 |
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); }