salortiz / LMDB_File

Perl wrapper around the OpenLDAP's LMDB
Other
8 stars 12 forks source link

$tflags should be defaulted to 0 to avoid warnings about uninitialized value $tflags in bitwise #38

Open annibale-x opened 9 months ago

annibale-x commented 9 months ago

https://github.com/salortiz/LMDB_File/blob/328a572c5db9c8edfa40e7269bd8d1fdf738b377/lib/LMDB_File.pm#L148C27-L148C27

As tflags are documented as optional in the costructor of LMDB::Txn ($Txn = LMDB::Txn->new ( $Env [, $tflags ] )) the $tflags constructor argument should be defaulted to 0 to avoid the tedious warning about uninitialized value in bitwise.