gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, feature/cpp-compile, updated. gawk-4.1.0-4163-g5ef575


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/cpp-compile, updated. gawk-4.1.0-4163-g5ef575d
Date: Thu, 22 Oct 2020 03:54:47 -0400 (EDT)

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, feature/cpp-compile has been updated
       via  5ef575d391a37bd6695e43b2cdc1b6a49d9fc7af (commit)
      from  5b4116f120efdf104187af43e85ea6e2f34c4bdb (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=5ef575d391a37bd6695e43b2cdc1b6a49d9fc7af

commit 5ef575d391a37bd6695e43b2cdc1b6a49d9fc7af
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Thu Oct 22 10:54:35 2020 +0300

    Fix some warnings.

diff --git a/builtin.c b/builtin.c
index e22e5e3..2a8c19c 100644
--- a/builtin.c
+++ b/builtin.c
@@ -4069,7 +4069,7 @@ NODE *
 do_typeof(int nargs)
 {
        NODE *arg;
-       char *res = NULL;
+       const char *res = NULL;
        bool deref = true;
        NODE *dbg;
 
diff --git a/gawkapi.c b/gawkapi.c
index c7d833d..9463ff8 100644
--- a/gawkapi.c
+++ b/gawkapi.c
@@ -31,7 +31,7 @@ extern INSTRUCTION *main_beginfile;
 extern int currule;
 
 static awk_bool_t node_to_awk_value(NODE *node, awk_value_t *result, 
awk_valtype_t wanted);
-static char *valtype2str(awk_valtype_t type);
+static const char *valtype2str(awk_valtype_t type);
 static NODE *ns_lookup(const char *name_space, const char *name, char 
**full_name);
 
 /*
@@ -1560,13 +1560,13 @@ print_ext_versions(void)
 
 /* valtype2str --- return a printable representation of a value type */
 
-static char *
+static const char *
 valtype2str(awk_valtype_t type)
 {
        static char buf[100];
 
        // Important: keep in same order as in gawkapi.h!
-       static char *values[] = {
+       static const char *values[] = {
                "AWK_UNDEFINED",
                "AWK_NUMBER",
                "AWK_STRING",
diff --git a/profile.c b/profile.c
index 4a676ae..e4fd88d 100644
--- a/profile.c
+++ b/profile.c
@@ -781,7 +781,7 @@ cleanup:
                case Op_indirect_func_call:
                case Op_func_call:
                {
-                       char *pre;
+                       const char *pre;
                        int pcount;
                        bool malloced = false;
                        char *fname = adjust_namespace(pc->func_name, & 
malloced);

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

Summary of changes:
 builtin.c | 2 +-
 gawkapi.c | 6 +++---
 profile.c | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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