From 228652f20005a1c5779f3d3e2aca2fca3ca69bd7 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 14 Aug 2026 22:35:22 -0700 Subject: [PATCH] sed: pacify ODS 12.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * sed/compile.c (bad_prog, bad_prog_notranslate) (mark_subst_opts): Omit some unreachable code (including an unreachable ‘unreachable ()’!) to pacify Oracle Developer Studio 12.6. --- sed/compile.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sed/compile.c b/sed/compile.c index 8c75d6f..77aa4ae 100644 --- a/sed/compile.c +++ b/sed/compile.c @@ -135,7 +135,6 @@ bad_prog (char const *why, ...) va_list ap; va_start (ap, why); vbad_prog (gettext (why), ap); - va_end (ap); } void bad_prog_notranslate (const char *why, ...) @@ -143,7 +142,6 @@ bad_prog_notranslate (const char *why, ...) va_list ap; va_start (ap, why); vbad_prog (why, ap); - va_end (ap); } enum { INCHAR_EOF = -1 - UCHAR_MAX }; @@ -568,10 +566,8 @@ mark_subst_opts (struct subst *cmd) if (inchar () == '\n') return flags; FALLTHROUGH; - default: bad_prog ("unknown option to 's'"); - unreachable (); } } @@ -958,7 +954,6 @@ compile_program (struct vector *vector) case 'e': case 'F': case 'v': case 'z': case 'Q': case 'T': case 'R': case 'W': bad_prog ("unknown command: '%c'", ch); - FALLTHROUGH; case 'a': case 'i': case 'l': case '=': case 'r':