[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4360-g7d8a75a
From: |
Andrew J. Schorr |
Subject: |
[SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4360-g7d8a75a |
Date: |
Thu, 2 Dec 2021 09:14:41 -0500 (EST) |
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.1-stable has been updated
via 7d8a75a766b17fe395c0a82050d314c2dea57f3e (commit)
from f77e1318c515d495ac9c08bdfdf2dadf79a9649f (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=7d8a75a766b17fe395c0a82050d314c2dea57f3e
commit 7d8a75a766b17fe395c0a82050d314c2dea57f3e
Author: Andrew J. Schorr <aschorr@telemetry-investments.com>
Date: Thu Dec 2 09:14:22 2021 -0500
Don't use return in a call to a void function.
diff --git a/ChangeLog b/ChangeLog
index 04ca6d7..0345ee7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-12-02 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * builtin.c (efwrite): Don't use return in call of function
+ returning void. Some compilers might not like it.
+
2021-12-01 Arnold D. Robbins <arnold@skeeve.com>
* builtin.c (efflush): Don't use return in call of function
diff --git a/builtin.c b/builtin.c
index d77d276..91cd142 100644
--- a/builtin.c
+++ b/builtin.c
@@ -151,10 +151,14 @@ efwrite(const void *ptr,
{
errno = 0;
if (rp != NULL) {
- if (rp->output.gawk_fwrite(ptr, size, count, fp,
rp->output.opaque) != count)
- return wrerror(fp, from, rp);
- } else if (fwrite(ptr, size, count, fp) != count)
- return wrerror(fp, from, rp);
+ if (rp->output.gawk_fwrite(ptr, size, count, fp,
rp->output.opaque) != count) {
+ wrerror(fp, from, rp);
+ return;
+ }
+ } else if (fwrite(ptr, size, count, fp) != count) {
+ wrerror(fp, from, rp);
+ return;
+ }
if (flush
&& ((fp == stdout && output_is_tty)
|| (rp != NULL && (rp->flag & RED_NOBUF) != 0)))
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
builtin.c | 12 ++++++++----
2 files changed, 13 insertions(+), 4 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4360-g7d8a75a,
Andrew J. Schorr <=