diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2026-06-15 02:08:14 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2026-06-16 10:39:58 +0200 |
| commit | 773b790570eea3b53864f4955eaeed6c5502d024 (patch) | |
| tree | 677db163ed0e44bd0c8c568bf968a818280c5781 /Src/exec.c | |
| parent | 54771: fix a bug in nosort deduplication (diff) | |
| download | zsh-773b790570eea3b53864f4955eaeed6c5502d024.tar zsh-773b790570eea3b53864f4955eaeed6c5502d024.tar.gz zsh-773b790570eea3b53864f4955eaeed6c5502d024.tar.bz2 zsh-773b790570eea3b53864f4955eaeed6c5502d024.tar.lz zsh-773b790570eea3b53864f4955eaeed6c5502d024.tar.xz zsh-773b790570eea3b53864f4955eaeed6c5502d024.tar.zst zsh-773b790570eea3b53864f4955eaeed6c5502d024.zip | |
54776: fix warnings from 54710
Some compilers warn if a label immediately precedes a variable declaration.
Diffstat (limited to 'Src/exec.c')
| -rw-r--r-- | Src/exec.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Src/exec.c b/Src/exec.c index f7249f551..17899262d 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -3300,15 +3300,17 @@ execcmd_exec(Estate state, Execcmd_params eparams, cflags |= BINF_DASH; break; default: - convchar_t opt = unmeta_one(cmdopt, NULL); - zerr("unknown exec flag -%c", opt); - lastval = 1; - errflag |= ERRFLAG_ERROR; - if (forked) - _realexit(); - if (how & Z_TIMED) - shelltime(&shti, &chti, &then, 1); - return; + { + convchar_t opt = unmeta_one(cmdopt, NULL); + zerr("unknown exec flag -%c", opt); + lastval = 1; + errflag |= ERRFLAG_ERROR; + if (forked) + _realexit(); + if (how & Z_TIMED) + shelltime(&shti, &chti, &then, 1); + return; + } } } if (!argnode) |
