Commit e40a931
committed
Merge #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: 563d5666db19d7af0b8ad9fc5957f49b63b0fcc6febcead3526aead72db6e4b62ba99a750d82eed9572f50005f519fc2006a911bf9975dd64b73d928cb030fa91 file changed
+23
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | 453 | | |
463 | 454 | | |
464 | 455 | | |
| |||
478 | 469 | | |
479 | 470 | | |
480 | 471 | | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | 472 | | |
496 | 473 | | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
| |||
0 commit comments