summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-20 02:06:25 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-20 02:06:25 +0000
commitcde87e39c68f599026cc350c37c0cafe0e7ebcb6 (patch)
treea87d7f1b71db509e15f1723d772770061b70eb28 /source4/build
parent52461a3d14465b6c732d31a37bad6465818bbe7f (diff)
downloadsamba-cde87e39c68f599026cc350c37c0cafe0e7ebcb6.tar.gz
samba-cde87e39c68f599026cc350c37c0cafe0e7ebcb6.tar.bz2
samba-cde87e39c68f599026cc350c37c0cafe0e7ebcb6.zip
avoid compiler warnings for unused variables with [relative] pointers
(This used to be commit 786566e53c22d8d0813cf006a70aef8508bba4dd)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/pidl/parser.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/build/pidl/parser.pm b/source4/build/pidl/parser.pm
index ba0649ba75..e06f3d4288 100644
--- a/source4/build/pidl/parser.pm
+++ b/source4/build/pidl/parser.pm
@@ -631,7 +631,8 @@ sub ParseStructPull($)
# declare any internal pointers we need
foreach my $e (@{$struct->{ELEMENTS}}) {
- if (util::need_wire_pointer($e)) {
+ if (util::need_wire_pointer($e) &&
+ !util::has_property($e, "relative")) {
$res .= "\tuint32 _ptr_$e->{NAME};\n";
}
}