Source: nn Version: 6.7.3-14 Severity: normal Tags: patch Dear Maintainer,
>From 8a19af8d4c9d3b6447b3d263c4f49aea852665a0 Mon Sep 17 00:00:00 2001 >From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> >Date: Fri, 19 Feb 2021 18:52:13 +0000 >Subject: [PATCH] more.c: add braces around initializer Warning from the compiler: more.c:96:33: warning: missing braces around initializer [-Wmissing-braces] Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> --- more.c | 56 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/more.c b/more.c index 6985a6b..8a1987a 100644 --- a/more.c +++ b/more.c @@ -95,34 +95,34 @@ static struct header_def { char **digest; } header_defs[] = { - 'A', "Approved", &news.ng_appr, 0, - 'B', "Distribution", &news.ng_dist, 0, - 'c', "Comment-To", &news.ng_comment, 0, - 'C', "Control", &news.ng_control, 0, - 'D', "Date", &news.ng_date, &digest.dg_date, - 'F', "From", &news.ng_from, &digest.dg_from, - 'f', "Sender", &news.ng_sender, 0, - 'I', "Message-Id", &news.ng_ident, 0, - 'J', "Originator", &news.ng_origr, 0, - 'K', "Keywords", &news.ng_keyw, 0, - 'L', "Lines", &news.ng_xlines, 0, - 'N', "Newsgroups", &news.ng_groups, 0, - 'O', "Organization", &news.ng_org, 0, - 'P', "Path", &news.ng_path, 0, - 'R', "Reply-To", &news.ng_reply, 0, - 'S', "Subject", &news.ng_subj, &digest.dg_subj, - 'W', "Followup-To", &news.ng_follow, 0, - 'X', "References", &news.ng_ref, 0, - 'Y', "Summary", &news.ng_summ, 0, - 'd', "Date-Received", &news.ng_rdate, 0, - 'g', "Newsgroup", &news.ng_groups, 0, - 'G', "Newsgroup", &news.ng_groups, 0, - 'n', "Newsgroups", &news.ng_groups, 0, - 'x', "Back-Ref", &news.ng_bref, 0, - 'v', "Save-File", NULL, 0, - 'a', "Spool-File", NULL, 0, - 'i', "DB-Info", NULL, 0, - 0 + {'A', "Approved", &news.ng_appr, 0}, + {'B', "Distribution", &news.ng_dist, 0}, + {'c', "Comment-To", &news.ng_comment, 0}, + {'C', "Control", &news.ng_control, 0}, + {'D', "Date", &news.ng_date, &digest.dg_date}, + {'F', "From", &news.ng_from, &digest.dg_from}, + {'f', "Sender", &news.ng_sender, 0}, + {'I', "Message-Id", &news.ng_ident, 0}, + {'J', "Originator", &news.ng_origr, 0}, + {'K', "Keywords", &news.ng_keyw, 0}, + {'L', "Lines", &news.ng_xlines, 0}, + {'N', "Newsgroups", &news.ng_groups, 0}, + {'O', "Organization", &news.ng_org, 0}, + {'P', "Path", &news.ng_path, 0}, + {'R', "Reply-To", &news.ng_reply, 0}, + {'S', "Subject", &news.ng_subj, &digest.dg_subj}, + {'W', "Followup-To", &news.ng_follow, 0}, + {'X', "References", &news.ng_ref, 0}, + {'Y', "Summary", &news.ng_summ, 0}, + {'d', "Date-Received", &news.ng_rdate, 0}, + {'g', "Newsgroup", &news.ng_groups, 0}, + {'G', "Newsgroup", &news.ng_groups, 0}, + {'n', "Newsgroups", &news.ng_groups, 0}, + {'x', "Back-Ref", &news.ng_bref, 0}, + {'v', "Save-File", NULL, 0}, + {'a', "Spool-File", NULL, 0}, + {'i', "DB-Info", NULL, 0}, + {0} }; static int -- 2.30.0 -- 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