From 676a8fdefc9977535b1b28fedd3c567b252b0693 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 12 Dec 2018 19:10:32 +0100 Subject: pidl: Use C99 initializers for last element in 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 Reviewed-by: Andrew Bartlett --- pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index cfcd29e25a7..eae58a9a432 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -2676,7 +2676,7 @@ sub ParseGeneratePipeArray($$$) $self->deindent; $self->pidl("},"); } - $self->pidl("{ NULL, NULL, 0, NULL, NULL, NULL }"); + $self->pidl("{ .name = NULL }"); $self->deindent; $self->pidl("};"); $self->pidl(""); @@ -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{ .name = NULL }"); $self->pidl("};"); $self->pidl(""); -- cgit v1.2.1