From 98f0d284877f2eee365657441ef62f2d5e44b58b Mon Sep 17 00:00:00 2001
From: Michael Tuexen <tuexen@fh-muenster.de>
Date: Mon, 23 Apr 2018 22:28:03 +0200
Subject: [PATCH] Silence compiler warning on NetBSD.

---
 gtests/net/packetdrill/sctp_packet.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gtests/net/packetdrill/sctp_packet.c b/gtests/net/packetdrill/sctp_packet.c
index b948e3a8..d74d0dbb 100644
--- a/gtests/net/packetdrill/sctp_packet.c
+++ b/gtests/net/packetdrill/sctp_packet.c
@@ -2628,6 +2628,7 @@ sctp_missing_mandatory_parameter_cause_new(struct sctp_parameter_type_list *list
 		assert((i == list->nr_entries) && (item == NULL));
 	} else {
 		cause->nr_parameters = htonl(0);
+		i = 0; /* Just to make the compiler on NetBSD happy. */
 	}
 	if (padding_length == 2) {
 		cause->parameter_type[i] = htons(0);
-- 
GitLab