mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
avoid compiler warnings for unused variables with [relative] pointers
(This used to be commit 786566e53c22d8d0813cf006a70aef8508bba4dd)
This commit is contained in:
parent
52461a3d14
commit
cde87e39c6
@ -631,7 +631,8 @@ sub ParseStructPull($)
|
||||
|
||||
# declare any internal pointers we need
|
||||
foreach my $e (@{$struct->{ELEMENTS}}) {
|
||||
if (util::need_wire_pointer($e)) {
|
||||
if (util::need_wire_pointer($e) &&
|
||||
!util::has_property($e, "relative")) {
|
||||
$res .= "\tuint32 _ptr_$e->{NAME};\n";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user