gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, gawk-5.3-stable, updated. gawk-4.1.0-5501-g5d0ec572


From: Arnold Robbins
Subject: [SCM] gawk branch, gawk-5.3-stable, updated. gawk-4.1.0-5501-g5d0ec572
Date: Sat, 10 Aug 2024 14:11:19 -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, gawk-5.3-stable has been updated
       via  5d0ec572b9d07799eef7e47f6cbc7e66f9f09110 (commit)
      from  641e1aa01371d417f72f3df3d5c59f6190c02f2e (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=5d0ec572b9d07799eef7e47f6cbc7e66f9f09110

commit 5d0ec572b9d07799eef7e47f6cbc7e66f9f09110
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Sat Aug 10 21:10:51 2024 +0300

    Additonal removal of compiler warnings.

diff --git a/ChangeLog b/ChangeLog
index eb2e55e3..8ccc2014 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-08-10         Arnold D. Robbins     <arnold@skeeve.com>
+
+       Thanks again to Michal Jaegermann for tips on removing
+       compiler warnings:
+
+       * eval.c (cmp_scalars): Default ret to false and add a
+       default case to the switch.
+
 2024-08-09         Arnold D. Robbins     <arnold@skeeve.com>
 
        Thanks to Michal Jaegermann for tips on removing
diff --git a/eval.c b/eval.c
index 266578fa..d45a863f 100644
--- a/eval.c
+++ b/eval.c
@@ -1545,7 +1545,7 @@ cmp_scalars(scalar_cmp_t comparison_type)
 {
        NODE *t1, *t2;
        int di;
-       bool ret;
+       bool ret = false;
 
        t2 = POP_SCALAR();
        t1 = TOP();
@@ -1584,6 +1584,9 @@ cmp_scalars(scalar_cmp_t comparison_type)
                case SCALAR_GE:
                        ret = (di >= 0);
                        break;
+               default:
+                       cant_happen("invalid value %d in cmp_scalars", (int) 
comparison_type);
+                       break;
                }
        } else {
 #ifdef HAVE_MPFR

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

Summary of changes:
 ChangeLog | 8 ++++++++
 eval.c    | 5 ++++-
 2 files changed, 12 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
gawk



reply via email to

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