You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge dashpay#6773: fix: hide multiple useless warnings for default build
eacd3df fmt: remove extra spaces in configure.ac (Konstantin Akimov)
82d73aa fix: hide multiple useless warnings for default build (Konstantin Akimov)
Pull request description:
## Issue being fixed or feature implemented
Default build produces hundreds of warnings. These warnings are disabled for `--enable-werror`, but they all are show for regular builds.
In file included from ./hash.h:16,
from ./bls/bls.h:8,
from ./evo/dmnstate.h:8,
from ./evo/deterministicmns.h:8,
from evo/deterministicmns.cpp:5:
In member function ‘constexpr int base_blob<BITS>::Compare(const base_blob<BITS>&) const [with unsigned int BITS = 256]’,
inlined from ‘constexpr bool operator!=(const base_blob<256>&, const base_blob<256>&)’ at ./uint256.h:58:96,
inlined from ‘bool CheckProUpServTx(CDeterministicMNManager&, const CTransaction&, gsl::not_null<const CBlockIndex*>, TxValidationState&, bool)’ at evo/deterministicmns.cpp:1158:101:
./uint256.h:55:77: warning: ‘int __builtin_memcmp_eq(const void*, const void*, long unsigned int)’ specified bound 32 exceeds source size 0 [-Wstringop-overread]
55 | constexpr int Compare(const base_blob& other) const { return std::memcmp(m_data.data(), other.m_data.data(), WIDTH); }
## What was done?
Hide useless warnings for default build too. They have no use.
## How Has This Been Tested?
Configure with --enable-werror and without it:
```
./configure --prefix=$(pwd)/depends/x86_64-pc-linux-gnu --enable-werror --enable-debug --enable-stacktraces --enable-crash-hooks --enable-maintainer-mode
./configure --prefix=$(pwd)/depends/x86_64-pc-linux-gnu
```
Works fine now!
## Breaking Changes
N/A
## Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone
ACKs for top commit:
UdjinM6:
utACK eacd3df
Tree-SHA512: 563d5666db19d7af0b8ad9fc5957f49b63b0fcc6febcead3526aead72db6e4b62ba99a750d82eed9572f50005f519fc2006a911bf9975dd64b73d928cb030fa9
0 commit comments