From 5732c6840350f18dd779d5a088bc825a9d1b4069 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 8 May 2013 10:18:54 +0200 Subject: Revert "Remove a bunch of "unused variable _relative_save_offset" warnings." MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fa5898b6de797431d5ae9d2ce6dcddcb35a60b66. This is the wrong fix for the warnings, the correct fix will follow. Signed-off-by: Stefan Metzmacher Reviewed-by: Günther Deschner --- pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 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 ed86571aa2..5ffb67846b 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -1157,10 +1157,8 @@ sub ParseElementPullLevel $self->indent; if ($l->{POINTER_TYPE} eq "relative" or $l->{POINTER_TYPE} eq "relative_short") { - if ($l->{POINTER_TYPE} eq "relative") { - $self->pidl("uint32_t _relative_save_offset;"); - $self->pidl("_relative_save_offset = $ndr->offset;"); - } + $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