mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r985: Add stub function for dumping enums to prevent perl warnings in eparser.
This commit is contained in:
parent
d0d0734845
commit
12c7d3a464
@ -78,6 +78,19 @@ sub DumpStruct($)
|
||||
}
|
||||
|
||||
|
||||
#####################################################################
|
||||
# dump a struct
|
||||
sub DumpEnum($)
|
||||
{
|
||||
my($enum) = shift;
|
||||
my($res);
|
||||
|
||||
$res .= "enum";
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
|
||||
#####################################################################
|
||||
# dump a union element
|
||||
sub DumpUnionElement($)
|
||||
@ -126,6 +139,8 @@ sub DumpType($)
|
||||
($res .= DumpStruct($data));
|
||||
($data->{TYPE} eq "UNION") &&
|
||||
($res .= DumpUnion($data));
|
||||
($data->{TYPE} eq "ENUM") &&
|
||||
($res .= DumpEnum($data));
|
||||
} else {
|
||||
$res .= "$data";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user