Source: nn
Version: 6.7.3-14
Severity: normal
Tags: patch

Dear Maintainer,

>From 8f87fb5cfae2a880568aed3ce09f7d03e5052dcf Mon Sep 17 00:00:00 2001
>From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is>
>Date: Wed, 10 Mar 2021 01:34:26 +0000
>Subject: [PATCH] answer.c: fix a warning "-Wmissing-field-initializers"

  The compiler warns about a '0' in the last line after '\0'.

answer.c:807:5: warning: missing initializer for field 'option_address'
of 'struct option_descr' [-Wmissing-field-initializers]

Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is>
---
 answer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/answer.c b/answer.c
index d602c80..2631165 100644
--- a/answer.c
+++ b/answer.c
@@ -804,7 +804,7 @@ Option_Description(post_options)
     {'s', String_Option(post_subject)},
     {'y', String_Option(post_summary)},
     {'p', Bool_Option(post_no_edit)},
-    {'\0', 0},
+    {'\0',},
 };
 
 void
-- 
2.30.1



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (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

Reply via email to