=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sed/compile.c,v retrieving revision 1.40 retrieving revision 1.41 diff -c -r1.40 -r1.41 *** src/usr.bin/sed/compile.c 2015/10/26 22:24:44 1.40 --- src/usr.bin/sed/compile.c 2017/01/20 10:26:16 1.41 *************** *** 1,4 **** ! /* $OpenBSD: compile.c,v 1.40 2015/10/26 22:24:44 jca Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. --- 1,4 ---- ! /* $OpenBSD: compile.c,v 1.41 2017/01/20 10:26:16 krw Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. *************** *** 520,533 **** } else if (*p == '\n') { error(COMPILE, "unescaped newline inside substitute pattern"); - /* NOTREACHED */ } *sp++ = *p; } size += sp - op; } while ((p = cu_fgets(&lbuf, &bufsize))); error(COMPILE, "unterminated substitute in regular expression"); - /* NOTREACHED */ } /* --- 520,531 ---- *************** *** 578,584 **** p++; #ifdef HISTORIC_PRACTICE if (*p != ' ') { ! error(WARNING, "space missing before w wfile"); return (p); } #endif --- 576,582 ---- p++; #ifdef HISTORIC_PRACTICE if (*p != ' ') { ! warning("space missing before w wfile"); return (p); } #endif *************** *** 750,756 **** *s = '\0'; } if (ws) ! error(WARNING, "whitespace after %s", ctype); len = s - start + 1; if (semi) *semi = s; --- 748,754 ---- *s = '\0'; } if (ws) ! warning("whitespace after %s", ctype); len = s - start + 1; if (semi) *semi = s; *************** *** 854,860 **** for (lh = labels[i]; lh != NULL; lh = next) { next = lh->lh_next; if (!lh->lh_ref) ! error(WARNING, "unused label '%s'", lh->lh_cmd->t); free(lh); } --- 852,858 ---- for (lh = labels[i]; lh != NULL; lh = next) { next = lh->lh_next; if (!lh->lh_ref) ! warning("unused label '%s'", lh->lh_cmd->t); free(lh); }