From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id fc05d547 for ; Sat, 3 Aug 2019 05:53:54 +0000 (UTC) Received: (qmail 14639 invoked by alias); 3 Aug 2019 05:53:46 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44637 Received: (qmail 18134 invoked by uid 1010); 3 Aug 2019 05:53:46 -0000 X-Qmail-Scanner-Diagnostics: from gateway33.websitewelcome.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25524. spamassassin: 3.4.2. Clear:RC:0(192.185.145.87):SA:0(-1.1/5.0):. Processed in 3.60254 secs); 03 Aug 2019 05:53:46 -0000 X-Envelope-From: shlomif@shlomifish.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: neutral (ns1.primenet.com.au: 192.185.145.87 is neither permitted nor denied by SPF record at shlomifish.org) X-Authority-Reason: nr=8 Date: Sat, 3 Aug 2019 08:53:05 +0300 From: Shlomi Fish To: zsh-workers@zsh.org Subject: [PATCH] Silence build time warning while using gawk 5.x Message-ID: <20190803085305.060687c5@telaviv1.shlomifish.org> X-Mailer: Claws Mail 3.17.3git194 (GTK+ 2.24.32; x86_64-mageia-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/aqif=8LhKQVvr1FwePC.gjC" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4065.hostgator.com X-AntiAbuse: Original Domain - zsh.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - shlomifish.org X-BWhitelist: no X-Source-IP: 84.229.97.84 X-Source-L: No X-Exim-ID: 1htmya-003zAB-Gs X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: igld-84-229-97-84.inter.net.il (telaviv1.shlomifish.org) [84.229.97.84]:54730 X-Source-Auth: shlomif@shlomifish.org X-Email-Count: 1 X-Source-Cap: c2hsb21pZjtzaGxvbWlmO2dhdG9yNDA2NS5ob3N0Z2F0b3IuY29t X-Local-Domain: yes --MP_/aqif=8LhKQVvr1FwePC.gjC Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 =3D substr(line, 1, RLENGTH-1) line =3D substr(line, RLENGTH+1) - sub(/\=3D.*$/, "", dcltor) + sub(/=3D.*$/, "", dcltor) match(dcltor, /^([^_0-9A-Za-z]| const )*/) dcltor =3D substr(dcltor, 1, RLENGTH) "@+" substr(dcltor, RLENGTH+1) match(dcltor, /^.*@\+[_0-9A-Za-z]+/) --=20 ----------------------------------------------------------------- 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=E2=80=99s problems are solved. =E2=80=94 http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply . --MP_/aqif=8LhKQVvr1FwePC.gjC Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=zsh-gawk5.patch 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]+/) --MP_/aqif=8LhKQVvr1FwePC.gjC--