summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-05-08 10:18:54 +0200
committerJeremy Allison <jra@samba.org>2013-05-08 09:36:49 -0700
commit5732c6840350f18dd779d5a088bc825a9d1b4069 (patch)
tree785240dad59e76526ab6584984245b7ff1be13ac /pidl
parentfa5898b6de797431d5ae9d2ce6dcddcb35a60b66 (diff)
downloadsamba-5732c6840350f18dd779d5a088bc825a9d1b4069.tar.gz
samba-5732c6840350f18dd779d5a088bc825a9d1b4069.tar.bz2
samba-5732c6840350f18dd779d5a088bc825a9d1b4069.zip
Revert "Remove a bunch of "unused variable _relative_save_offset" warnings."
This reverts commit fa5898b6de797431d5ae9d2ce6dcddcb35a60b66. This is the wrong fix for the warnings, the correct fix will follow. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm6
1 files changed, 2 insertions, 4 deletions
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));");
}
}