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

Default initialise is_handle_internal_ #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Bidski
Copy link

@Bidski Bidski commented Aug 19, 2022

gcc12 flags is_handle_internal_ as maybe being uninitialised. This PR adds a default initialisation for is_handle_internal_ to avoid this.

/usr/local/include/mio/detail/mmap.ipp:419:8: warning: '<anonymous>.mio::basic_mmap<mio::access_mode::write, char>::is_handle_internal_' may be used uninitialized [-Wmaybe-uninitialized]
  419 |     if(is_handle_internal_)
      |        ^~~~~~~~~~~~~~~~~~~

gcc12 flags `is_handle_internal_` as maybe being uninitialised. This PR adds a default initialisation for `is_handle_internal_` to avoid this.
```
/usr/local/include/mio/detail/mmap.ipp:419:8: warning: '<anonymous>.mio::basic_mmap<mio::access_mode::write, char>::is_handle_internal_' may be used uninitialized [-Wmaybe-uninitialized]
  419 |     if(is_handle_internal_)
      |        ^~~~~~~~~~~~~~~~~~~
```
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 this pull request may close these issues.

1 participant