gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, master, updated. a5711befb70980b837b548f


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. a5711befb70980b837b548fb9653a708119fe9bf
Date: Mon, 09 May 2011 14:30:18 +0000

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, master has been updated
       via  a5711befb70980b837b548fb9653a708119fe9bf (commit)
      from  8b6115459066a2adf536973fe5670c174bcd218c (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=a5711befb70980b837b548fb9653a708119fe9bf

commit a5711befb70980b837b548fb9653a708119fe9bf
Author: Arnold D. Robbins <address@hidden>
Date:   Mon May 9 17:29:55 2011 +0300

    Fixes for uninitialized variables.

diff --git a/ChangeLog b/ChangeLog
index ed2922f..ea26be0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon May  9 16:30:49 2011  Arnold D. Robbins  <address@hidden>
+
+       * array.c (sort_up_value_type): Remove unused variable ret.
+       (do_delete): Initialize local variables to silence warnings.
+       Thanks to Michal Jaegermann.
+
 Mon May  9 15:07:29 2011  Corinna Vinschen  <address@hidden>
 
        * awk.h: Remove cygwin code for libsigsegv.
diff --git a/array.c b/array.c
index 5cf75d2..84b9a91 100644
--- a/array.c
+++ b/array.c
@@ -666,11 +666,12 @@ local_array:
 void
 do_delete(NODE *symbol, int nsubs)
 {
-       unsigned long hash1;
+       unsigned long hash1 = 0;
        NODE *subs, *bucket, *last, *r;
        int i;
 
        assert(symbol->type == Node_var_array);
+       subs = bucket = last = r = NULL;        /* silence the compiler */
 
        /*
         * The force_string() call is needed to make sure that
@@ -1446,7 +1447,6 @@ sort_up_value_type(const void *p1, const void *p2)
 {
        const NODE *t1, *t2;
        NODE *n1, *n2;
-       int ret;
 
        /* we're passed a pair of index (array subscript) nodes */
        t1 = *(const NODE *const *) p1;
diff --git a/awklib/eg/prog/anagram.awk b/awklib/eg/prog/anagram.awk
index 550e958..7ca1455 100644
--- a/awklib/eg/prog/anagram.awk
+++ b/awklib/eg/prog/anagram.awk
@@ -6,7 +6,7 @@
 # This program requires gawk 4.0 or newer.
 # Required gawk-specific features:
 #   - True multidimensional arrays
-#   - split() with "" as separater splits out individual characters
+#   - split() with "" as separator splits out individual characters
 #   - asort() and asorti() functions
 #
 # See http://savannah.gnu.org/projects/gawk.

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

Summary of changes:
 ChangeLog                  |    6 ++++++
 array.c                    |    4 ++--
 awklib/eg/prog/anagram.awk |    2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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