[PATCH] Small pidl fix

Andreas Schneider asn at samba.org
Wed Dec 12 18:23:27 UTC 2018


Hi,

the attached patch completes an initializer too avoid build warnings.


Please review and push if OK.


Thanks,


	Andreas

-- 
Andreas Schneider                      asn at samba.org
Samba Team                             www.samba.org
GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D
-------------- next part --------------
From a1c48c103ad2b4a78027b7f308fa54dcd7eac3b8 Mon Sep 17 00:00:00 2001
From: Andreas Schneider <asn at samba.org>
Date: Wed, 12 Dec 2018 19:10:32 +0100
Subject: [PATCH] pidl: Add missing initializers for ndr_interface_call_pipes
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

librpc/gen_ndr/ndr_witness.c:1421:2: warning: missing initializer for
field ‘in_pipes’ of ‘const struct ndr_interface_call’
[-Wmissing-field-initializers] <--[gcc]
  { NULL, 0, NULL, NULL, NULL }

Signed-off-by: Andreas Schneider <asn at samba.org>
---
 pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
index cfcd29e25a7..92ed946bd16 100644
--- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
@@ -2772,7 +2772,7 @@ sub FunctionTable($$)
 	foreach my $d (@{$interface->{INHERITED_FUNCTIONS}},@{$interface->{FUNCTIONS}}) {
 		$count += $self->FunctionCallEntry($d);
 	}
-	$self->pidl("\t{ NULL, 0, NULL, NULL, NULL }");
+	$self->pidl("\t{ NULL, 0, NULL, NULL, NULL, {0, NULL}, {0, NULL} }");
 	$self->pidl("};");
 	$self->pidl("");
 
-- 
2.19.2



More information about the samba-technical mailing list