zsh-workers
 help / color / mirror / code / Atom feed
From: Shlomi Fish <shlomif@shlomifish.org>
To: zsh-workers@zsh.org
Subject: [PATCH] Silence build time warning while using gawk 5.x
Date: Sat, 3 Aug 2019 08:53:05 +0300	[thread overview]
Message-ID: <20190803085305.060687c5@telaviv1.shlomifish.org> (raw)

[-- 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]+/)

                 reply	other threads:[~2019-08-03  5:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190803085305.060687c5@telaviv1.shlomifish.org \
    --to=shlomif@shlomifish.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).