Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
annibale-x opened this issue Nov 9, 2023 · 0 comments · May be fixed by #39
Open

Comments

@annibale-x
Copy link

annibale-x commented Nov 9, 2023

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.

@annibale-x annibale-x changed the title $tflags should be defaulted to 0 to avoid warnings about uninitialized value $tflags in bitwise $tflags should be defaulted to avoid warnings about uninitialized value $tflags in bitwise Nov 9, 2023
@annibale-x annibale-x changed the title $tflags should be defaulted to avoid warnings about uninitialized value $tflags in bitwise $tflags should be defaulted to 0 avoid warnings about uninitialized value $tflags in bitwise Nov 9, 2023
@annibale-x annibale-x changed the title $tflags should be defaulted to 0 avoid warnings about uninitialized value $tflags in bitwise $tflags should be defaulted to 0 to avoid warnings about uninitialized value $tflags in bitwise Nov 9, 2023
@annibale-x annibale-x linked a pull request Nov 15, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant