summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2023-12-25 22:31:30 +0200
committerArnold D. Robbins <arnold@skeeve.com>2023-12-25 22:31:30 +0200
commit93333bd8d23a7c87f1980310afd5274c33311c36 (patch)
treebef161a16c6018940885ae3ec6d313d567b39b7c
parente9a78cb00374c49d3f2fd26fbe04fc05895b5ea7 (diff)
downloadgawk-93333bd8d23a7c87f1980310afd5274c33311c36.tar.gz
Fix a compiler warning.
-rw-r--r--ChangeLog5
-rw-r--r--debug.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 25d46f4..7753741 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-12-25 Arnold D. Robbins <arnold@skeeve.com>
+
+ * debug.c (serialize_list): Fix a compiler warning about
+ an unused variable.
+
2024-12-25 Andrew J. Schorr <aschorr@telemetry-investments.com>
* io.c (get_read_timeout): Make gawk match the doc and have
diff --git a/debug.c b/debug.c
index fc53d4e..8c5bee6 100644
--- a/debug.c
+++ b/debug.c
@@ -4513,7 +4513,7 @@ serialize_list(int type)
int cnum = 0;
struct condition *cndn = NULL;
void *ptr, *end_ptr;
-#ifdef HAVE_LIBREADLINE
+#if defined(HAVE_LIBREADLINE) && defined(HAVE_HISTORY_LIST)
HIST_ENTRY *h = NULL;
#endif