From fa5898b6de797431d5ae9d2ce6dcddcb35a60b66 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 7 May 2013 17:07:10 -0700 Subject: Remove a bunch of "unused variable _relative_save_offset" warnings. Signed-off-by: Jeremy Allison Reviewed-by: Richard Sharpe Autobuild-User(master): Richard Sharpe Autobuild-Date(master): Wed May 8 07:47:45 CEST 2013 on sn-devel-104 --- pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pidl') diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index 5ffb67846b..ed86571aa2 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -1157,8 +1157,10 @@ sub ParseElementPullLevel $self->indent; if ($l->{POINTER_TYPE} eq "relative" or $l->{POINTER_TYPE} eq "relative_short") { - $self->pidl("uint32_t _relative_save_offset;"); - $self->pidl("_relative_save_offset = $ndr->offset;"); + if ($l->{POINTER_TYPE} eq "relative") { + $self->pidl("uint32_t _relative_save_offset;"); + $self->pidl("_relative_save_offset = $ndr->offset;"); + } $self->pidl("NDR_CHECK(ndr_pull_relative_ptr2($ndr, $var_name));"); } } -- cgit