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/Modules | |
| 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/Modules')
| -rw-r--r-- | Src/Modules/system.c | 4 | ||||
| -rw-r--r-- | Src/Modules/zftp.c | 12 |
2 files changed, 9 insertions, 7 deletions
diff --git a/Src/Modules/system.c b/Src/Modules/system.c index 4d2f8c42a..57daf0d87 100644 --- a/Src/Modules/system.c +++ b/Src/Modules/system.c @@ -556,7 +556,7 @@ bin_zsystem_flock(char *nam, char **args, UNUSED(Options ops), UNUSED(int func)) #endif while (*args && **args == '-') { - int opt; + convchar_t opt; char *optptr = *args + 1, *optarg; args++; if (!*optptr || !strcmp(optptr, "-")) @@ -653,7 +653,7 @@ bin_zsystem_flock(char *nam, char **args, UNUSED(Options ops), UNUSED(int func)) break; default: - convchar_t opt = unmeta_one(optptr, NULL); + opt = unmeta_one(optptr, NULL); zwarnnam(nam, "flock: bad option: %c", opt); return 1; } diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c index f863676c1..738b22b43 100644 --- a/Src/Modules/zftp.c +++ b/Src/Modules/zftp.c @@ -3093,11 +3093,13 @@ bin_zftp(char *name, char **args, UNUSED(Options ops), UNUSED(int func)) break; default: - int sz; - convchar_t p = unmeta_one(ptr, &sz); - ptr += sz - 1; - zwarnnam(name, "preference %c not recognized", p); - break; + { + int sz; + convchar_t p = unmeta_one(ptr, &sz); + ptr += sz - 1; + zwarnnam(name, "preference %c not recognized", p); + break; + } } } } |
