gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4167-gba3fd3d


From: Arnold Robbins
Subject: [SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4167-gba3fd3d
Date: Mon, 2 Nov 2020 08:25:19 -0500 (EST)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, gawk-5.1-stable has been updated
       via  ba3fd3d4ab19184a84720772b861c10ffb595cf0 (commit)
      from  cff10f4627642bd4c2abfdf759761ec74d4bceea (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=ba3fd3d4ab19184a84720772b861c10ffb595cf0

commit ba3fd3d4ab19184a84720772b861c10ffb595cf0
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Mon Nov 2 15:24:53 2020 +0200

    Remove a compiler warning in re.c.

diff --git a/ChangeLog b/ChangeLog
index a7482ec..5caf828 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-11-02         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * re.c (make_regexp): Cast len parameter to int to avoid
+       compiler warnings.
+
 2020-10-31         Arnold D. Robbins     <arnold@skeeve.com>
 
        * re.c (make_regexp): When re_compile_pattern fails, use the
diff --git a/re.c b/re.c
index d9191a1..093d35e 100644
--- a/re.c
+++ b/re.c
@@ -258,10 +258,10 @@ make_regexp(const char *s, size_t len, bool ignorecase, 
bool dfa, bool canfatal)
                refree(rp);
                if (! canfatal) {
                        /* rerr already gettextized inside regex routines */
-                       error("%s: /%.*s/", rerr, len, s);
+                       error("%s: /%.*s/", rerr, (int) len, s);
                        return NULL;
                }
-               fatal("invalid regexp: %s: /%.*s/", rerr, len, s);
+               fatal("invalid regexp: %s: /%.*s/", rerr, (int) len, s);
        }
 
        /* gack. this must be done *after* re_compile_pattern */

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog | 5 +++++
 re.c      | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]