* [PATCH] Silence build time warning while using gawk 5.x
@ 2019-08-03 5:53 Shlomi Fish
0 siblings, 0 replies; only message in thread
From: Shlomi Fish @ 2019-08-03 5:53 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]
This patch was written by the Mageia ( https://www.mageia.org/en/ ) workers
including https://github.com/kekePower and me ( https://www.shlomifish.org/ ).
Please consider applying it.
diff --git a/Src/makepro.awk b/Src/makepro.awk
index 0498c1545..226d3f96b 100644
--- a/Src/makepro.awk
+++ b/Src/makepro.awk
@@ -121,7 +121,7 @@ BEGIN {
# initialiser.
dcltor = substr(line, 1, RLENGTH-1)
line = substr(line, RLENGTH+1)
- sub(/\=.*$/, "", dcltor)
+ sub(/=.*$/, "", dcltor)
match(dcltor, /^([^_0-9A-Za-z]| const )*/)
dcltor = substr(dcltor, 1, RLENGTH) "@+" substr(dcltor,
RLENGTH+1) match(dcltor, /^.*@\+[_0-9A-Za-z]+/)
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
http://youtu.be/KxGRhd_iWuE - Never Give Up!!
Chuck Norris had a problem so he decided to use regular expressions. Now,
all the World’s problems are solved.
— http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/
Please reply to list if it's a mailing list post - http://shlom.in/reply .
[-- Attachment #2: zsh-gawk5.patch --]
[-- Type: text/x-patch, Size: 455 bytes --]
diff --git a/Src/makepro.awk b/Src/makepro.awk
index 0498c1545..226d3f96b 100644
--- a/Src/makepro.awk
+++ b/Src/makepro.awk
@@ -121,7 +121,7 @@ BEGIN {
# initialiser.
dcltor = substr(line, 1, RLENGTH-1)
line = substr(line, RLENGTH+1)
- sub(/\=.*$/, "", dcltor)
+ sub(/=.*$/, "", dcltor)
match(dcltor, /^([^_0-9A-Za-z]| const )*/)
dcltor = substr(dcltor, 1, RLENGTH) "@+" substr(dcltor, RLENGTH+1)
match(dcltor, /^.*@\+[_0-9A-Za-z]+/)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-08-03 5:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-03 5:53 [PATCH] Silence build time warning while using gawk 5.x Shlomi Fish
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).