gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. 0cf50ae4c064bd


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. 0cf50ae4c064bd2d8960ffd1e14f97402b8f5157
Date: Mon, 10 Oct 2011 19:53:32 +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, gawk-4.0-stable has been updated
       via  0cf50ae4c064bd2d8960ffd1e14f97402b8f5157 (commit)
      from  35d9ad9209592594905d1c8f15130d09af111411 (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=0cf50ae4c064bd2d8960ffd1e14f97402b8f5157

commit 0cf50ae4c064bd2d8960ffd1e14f97402b8f5157
Author: Arnold D. Robbins <address@hidden>
Date:   Mon Oct 10 21:53:13 2011 +0200

    Remove some compile time warnings.

diff --git a/ChangeLog b/ChangeLog
index 4edb164..104eacd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-10-10         Arnold D. Robbins     <address@hidden>
+
+       * builtin.c (do_sub): Init textlen to zero to avoid "may be
+       used unitialized" warning. Thanks to Corinna Vinschen for
+       pointing this out.
+       * eval.c (unwind_stack): Add parentheses around condition in while
+       to avoid overzealous warning from GCC.
+
 2011-09-30  Eli Zaretskii  <address@hidden>
 
        * io.c (remap_std_file): Fix non-portable code that caused
diff --git a/builtin.c b/builtin.c
index 53800fc..072fd8f 100644
--- a/builtin.c
+++ b/builtin.c
@@ -2422,7 +2422,7 @@ do_sub(int nargs, unsigned int flags)
        size_t len;
        char *matchstart;
        char *text;
-       size_t textlen;
+       size_t textlen = 0;
        char *repl;
        char *replend;
        size_t repllen;
diff --git a/eval.c b/eval.c
index df9570e..cd5a584 100644
--- a/eval.c
+++ b/eval.c
@@ -1418,7 +1418,7 @@ unwind_stack(long n)
        if (stack_ptr < sp)
                return NULL;
 
-       while (r = POP()) {
+       while ((r = POP()) != NULL) {
                switch (r->type) {
                case Node_frame:
                        cp = restore_frame(r);

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

Summary of changes:
 ChangeLog |    8 ++++++++
 builtin.c |    2 +-
 eval.c    |    2 +-
 3 files changed, 10 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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