Skip to content

Conversation

Empact
Copy link

@Empact Empact commented Jan 10, 2020

And fix two trivial local violations - initialized to the empty or
failing value.

Note, in the current code these are false positives as the called
functions do set the value in all cases, but these initializations
remove the reliance on that external property, and enable
automatic detections of future violations.

Motivated by a desire to enable this warning in a project
that builds leveldb as a dependency.

And fix two trivial local violations - initialized to the empty or
failing value, respectively.

Note, in the current code these are false positives as the called
functions do set the value in all cases, but these initializations
remove the reliance on that external property.
@practicalswift
Copy link

Very good! Thanks for fixing this @Empact!

Would be really nice to get rid of these warnings when building Bitcoin Core!

maochongxin pushed a commit to maochongxin/leveldb that referenced this pull request Jul 21, 2022
…CacheSizes() (google#775)

- On qnx platform, cpu and cache info is stored in a syspage struct which
  is different from other OS platform.
- The fix has been verified on an aarch64 target running qnx 7.0.
Fixes google#774
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants