From 961eec1fb550c90fa9ae09eebc42dd072f1b7718 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 24 Oct 2019 09:42:51 -0400 Subject: [PATCH] Additional fixes after merge of PR 53. --- FIXES | 4 ++++ awk.h | 1 + main.c | 2 +- makefile | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/FIXES b/FIXES index 3bb1e4b..1e8e2f4 100644 --- a/FIXES +++ b/FIXES @@ -25,6 +25,10 @@ THIS SOFTWARE. This file lists all bug fixes, changes, etc., made since the AWK book was sent to the printers in August, 1987. +October 24, 2019: + Import second round of code cleanups from NetBSD. Much thanks + to Christos Zoulas (Github user zoulasc). Merges PR 53. + October 17, 2019: Import code cleanups from NetBSD. Much thanks to Christos Zoulas (Github user zoulasc). Merges PR 51. diff --git a/awk.h b/awk.h index c7bfacc..fa76ffc 100644 --- a/awk.h +++ b/awk.h @@ -23,6 +23,7 @@ THIS SOFTWARE. ****************************************************************/ #include +#include typedef double Awkfloat; diff --git a/main.c b/main.c index fc0dd7b..27dd6cf 100644 --- a/main.c +++ b/main.c @@ -22,7 +22,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ****************************************************************/ -const char *version = "version 20191017"; +const char *version = "version 20191024"; #define DEBUG #include diff --git a/makefile b/makefile index afaa02f..1843444 100644 --- a/makefile +++ b/makefile @@ -30,7 +30,7 @@ CFLAGS = -O2 #CC = gcc -Wall -g -Wwrite-strings #CC = gcc -O4 -Wall -pedantic -fno-strict-aliasing #CC = gcc -fprofile-arcs -ftest-coverage # then gcov f1.c; cat f1.c.gcov -HOSTCC = gcc -g -Wall -pedantic +HOSTCC = gcc -g -Wall -pedantic -Wcast-qual CC = $(HOSTCC) # change this is cross-compiling. # yacc options. pick one; this varies a lot by system.