summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-12-12 19:10:32 +0100
committerAndrew Bartlett <abartlet@samba.org>2018-12-13 01:49:30 +0100
commit676a8fdefc9977535b1b28fedd3c567b252b0693 (patch)
treeeee4d810e3c3e2a2c4dfda4177fa5fbf61d227bf /pidl
parent19a4d3ca692e864a2ae6c8c496e7eb08cded612f (diff)
downloadsamba-676a8fdefc9977535b1b28fedd3c567b252b0693.tar.gz
pidl: Use C99 initializers for last element in ndr_interface_call(_pipes)
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@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm4
1 files 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("");