diff options
author | Jeremy Allison <jra@samba.org> | 2013-05-07 17:07:10 -0700 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2013-05-08 07:47:45 +0200 |
commit | fa5898b6de797431d5ae9d2ce6dcddcb35a60b66 (patch) | |
tree | 0a52725577861b77552bf8174f9b6ea612993bc1 /pidl/lib/Parse | |
parent | 76bffc27a3f9ad6ac6b8ff8e21f801012835b73d (diff) | |
download | samba-fa5898b6de797431d5ae9d2ce6dcddcb35a60b66.tar.gz samba-fa5898b6de797431d5ae9d2ce6dcddcb35a60b66.tar.bz2 samba-fa5898b6de797431d5ae9d2ce6dcddcb35a60b66.zip |
Remove a bunch of "unused variable _relative_save_offset" warnings.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Autobuild-User(master): Richard Sharpe <sharpe@samba.org>
Autobuild-Date(master): Wed May 8 07:47:45 CEST 2013 on sn-devel-104
Diffstat (limited to 'pidl/lib/Parse')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 6 |
1 files changed, 4 insertions, 2 deletions
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));"); } } |