summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-11-22 13:59:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:22 -0500
commit9d7d39d1809b533787ef18c023c6b01ef10a75eb (patch)
treeff85086efbdcbff1e6b9b6eb9e9c13ebe8826b3d
parenta9e31b33b55a873c2f01db5e348560176adf863d (diff)
downloadsamba-9d7d39d1809b533787ef18c023c6b01ef10a75eb.tar.gz
samba-9d7d39d1809b533787ef18c023c6b01ef10a75eb.tar.bz2
samba-9d7d39d1809b533787ef18c023c6b01ef10a75eb.zip
r19834: Prevent some inaccurate warnings.
(This used to be commit 21efd2bdb8df8e709259d429fc3ff35eaa332d02)
-rw-r--r--source4/pidl/lib/Parse/Pidl/NDR.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/NDR.pm b/source4/pidl/lib/Parse/Pidl/NDR.pm
index d017c455a6..a478c15873 100644
--- a/source4/pidl/lib/Parse/Pidl/NDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/NDR.pm
@@ -181,9 +181,10 @@ sub GetElementLevelTable($)
LEVEL => $level
});
- nonfatal($e, "top-level pointer `$e->{NAME}' is not a \[ref\] pointer")
+ nonfatal($e, "top-level \[out\] pointer `$e->{NAME}' is not a \[ref\] pointer")
if ($i == 1 and pointer_type($e) ne "ref" and
- $e->{PARENT}->{TYPE} eq "FUNCTION");
+ $e->{PARENT}->{TYPE} eq "FUNCTION" and
+ not has_property($e, "in"));
$pointer_idx++;