# HG changeset patch # User David A. Holland # Date 1370909843 14400 # Node ID 4cc1c575951fe01beb65377eb835bd6c99b2a523 # Parent 123168887da80fb07d6697af4afc28ddd7a1fdee No need to warn about nested comments twice. diff -r 123168887da8 -r 4cc1c575951f output.c --- 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); }