Source: nn Version: 6.7.3-14 Severity: normal Tags: patch Dear Maintainer,
>From 46885e769883a98efb191f94a2c80a3fa9c29fbe Mon Sep 17 00:00:00 2001 >From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> >Date: Sat, 27 Feb 2021 23:52:48 +0000 >Subject: [PATCH] aux.c: fix the use of a named constant in the declaration of > an array A number must be used for the number of elements, otherwise an error: menu.c:99:17: error: variably modified 'delayed_msg' at file scope 99 | char delayed_msg[NDELAYED_MSG]; /* give to msg() after redraw */ | ^~~~~~~~~~~ Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> --- aux.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/aux.c b/aux.c index 4dec5bf..d5e415b 100644 --- a/aux.c +++ b/aux.c @@ -26,7 +26,13 @@ extern char *temp_file; extern int novice; const size_t NDELAYED_MSG = 100; /* size of array "delayed_msg[]" */ -char delayed_msg[NDELAYED_MSG]; +/* A number must be used for the number of elements, otherwise an error: + +menu.c:99:17: error: variably modified 'delayed_msg' at file scope + 99 | char delayed_msg[NDELAYED_MSG]; *//* give to msg() after redraw */ +/* | ^~~~~~~~~~~ +*/ +char delayed_msg[100]; /* give to msg() after redraw */ extern char *pager; extern char *inews_program; extern int inews_pipe_input; -- 2.30.1 -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.9-1 (SMP w/2 CPU threads) Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) -- debconf information excluded -- Bjarni I. Gislason