aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
Diffstat (limited to 'awkgram.y')
-rw-r--r--awkgram.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/awkgram.y b/awkgram.y
index cc203cf3..49eab2ae 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -2394,7 +2394,11 @@ get_src_buf()
/* If necessary, one day, test value for different functions. */
if (cp == NULL)
- readfunc = read;
+ /*
+ * cast is to remove warnings on systems with
+ * different return types for read.
+ */
+ readfunc = ( ssize_t(*)() ) read;
else
readfunc = read_one_line;
}