[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, master, updated. gawk-4.1.0-4446-g1f9769a
From: |
Arnold Robbins |
Subject: |
[SCM] gawk branch, master, updated. gawk-4.1.0-4446-g1f9769a |
Date: |
Fri, 3 Sep 2021 05:23:07 -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, master has been updated
via 1f9769a59895bd84ea2b06cec234a087ebf0a939 (commit)
from 115d14bcb7f9fc54caa33370e2887af3ac76e09f (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=1f9769a59895bd84ea2b06cec234a087ebf0a939
commit 1f9769a59895bd84ea2b06cec234a087ebf0a939
Author: Arnold D. Robbins <arnold@skeeve.com>
Date: Fri Sep 3 12:22:56 2021 +0300
Small fix in mpfr.c.
diff --git a/ChangeLog b/ChangeLog
index d0ffd46..d7faa66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-09-03 Arnold D. Robbins <arnold@skeeve.com>
+
+ * mpfr.c (mpg_cmp_as_numbers): Avoid compiler warning about possibly
+ used before set. Thanks to Michal Jaegermann for the report.
+
2021-08-18 Arnold D. Robbins <arnold@skeeve.com>
* main.c (main): Change have_srcfile from int to bool.
diff --git a/mpfr.c b/mpfr.c
index 55a289f..829f1f3 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -488,7 +488,7 @@ mpg_cmp_as_numbers(const NODE *t1, const NODE *t2,
scalar_cmp_t comparison_type)
bool t1_nan = mpfr_nan_p(t1->mpg_numbr);
bool t2_nan = mpfr_nan_p(t2->mpg_numbr);
- int ret;
+ bool ret = false;
// MPFR is different than native doubles...
if (t1_nan || t2_nan)
@@ -515,6 +515,9 @@ mpg_cmp_as_numbers(const NODE *t1, const NODE *t2,
scalar_cmp_t comparison_type)
case SCALAR_GE:
ret = (di >= 0);
break;
+ default:
+ cant_happen();
+ break;
}
return ret;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
mpfr.c | 5 ++++-
2 files changed, 9 insertions(+), 1 deletion(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, master, updated. gawk-4.1.0-4446-g1f9769a,
Arnold Robbins <=