summaryrefslogtreecommitdiff
path: root/source4/build/pidl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-07-19 23:53:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:45 -0500
commitddd64e7ef48c069f767b2de56397b9b03481b939 (patch)
tree5aa9ae9b2683f6e63f0ac2d799dfb61c46cfd3ab /source4/build/pidl
parentd5b7249ddd771e8c310c8248456b5a16b3cdbdfa (diff)
downloadsamba-ddd64e7ef48c069f767b2de56397b9b03481b939.tar.gz
samba-ddd64e7ef48c069f767b2de56397b9b03481b939.tar.bz2
samba-ddd64e7ef48c069f767b2de56397b9b03481b939.zip
r8623: Fix warnings in ODL-generated code.
(This used to be commit 78ef2349c7a1bff19fb86a41bf5c074a2dfcb222)
Diffstat (limited to 'source4/build/pidl')
-rw-r--r--source4/build/pidl/Parse/Pidl/ODL.pm1
-rw-r--r--source4/build/pidl/Parse/Pidl/Samba/NDR/Header.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/source4/build/pidl/Parse/Pidl/ODL.pm b/source4/build/pidl/Parse/Pidl/ODL.pm
index 9bf94b78b4..03d66bfc45 100644
--- a/source4/build/pidl/Parse/Pidl/ODL.pm
+++ b/source4/build/pidl/Parse/Pidl/ODL.pm
@@ -81,6 +81,7 @@ sub ODL2IDL($)
foreach my $fn (reverse @{$base->{DATA}}) {
next unless ($fn->{TYPE} eq "FUNCTION");
unshift (@{$x->{DATA}}, $fn);
+ push (@{$x->{INHERITED_FUNCTIONS}}, $fn->{NAME});
}
}
}
diff --git a/source4/build/pidl/Parse/Pidl/Samba/NDR/Header.pm b/source4/build/pidl/Parse/Pidl/Samba/NDR/Header.pm
index 7959ef1e22..a460d1c588 100644
--- a/source4/build/pidl/Parse/Pidl/Samba/NDR/Header.pm
+++ b/source4/build/pidl/Parse/Pidl/Samba/NDR/Header.pm
@@ -387,6 +387,7 @@ sub HeaderInterface($)
foreach my $d (@{$interface->{DATA}}) {
next if $d->{TYPE} ne "FUNCTION";
next if has_property($d, "noopnum");
+ next if grep(/$d->{NAME}/,@{$interface->{INHERITED_FUNCTIONS}});
my $u_name = uc $d->{NAME};
pidl "#define DCERPC_$u_name (";