summaryrefslogtreecommitdiff
path: root/usr.bin/sed/process.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-01-20 10:26:17 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-01-20 10:26:17 +0000
commit429dafba6d12db9382edb88285bbc77ccffa5613 (patch)
tree33772f2a6fb00bd4f9ea1afd3734114ddad9da38 /usr.bin/sed/process.c
parente8dd6f5a53004089bc93d9d41fd25f679cee8e17 (diff)
Split error() into error() and warning() so error() can be marked __dead to
appease gcc. ok procter@ deraadt@
Diffstat (limited to 'usr.bin/sed/process.c')
-rw-r--r--usr.bin/sed/process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c
index 16823ece1f3..81bf2ad322b 100644
--- a/usr.bin/sed/process.c
+++ b/usr.bin/sed/process.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process.c,v 1.29 2016/10/11 19:27:39 martijn Exp $ */
+/* $OpenBSD: process.c,v 1.30 2017/01/20 10:26:16 krw Exp $ */
/*-
* Copyright (c) 1992 Diomidis Spinellis.
@@ -539,7 +539,6 @@ regexec_e(regex_t *preg, const char *string, int eflags,
return (0);
}
error(FATAL, "RE error: %s", strregerror(eval, defpreg));
- /* NOTREACHED */
}
/*