aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@colorado.edu>2018-11-03 21:15:05 -0600
committerLenny Maiorani <lenny@colorado.edu>2018-11-04 20:50:40 -0700
commit76e13b586ff690dd3312f719f305c0d1021cd505 (patch)
tree04fa746cd6c9b2cb088895df4ebe8144dfd5701d /test
parent742ee213499194f97e59dae4971f1474ae7d57ad (diff)
downloadbitcoin-76e13b586ff690dd3312f719f305c0d1021cd505.tar.xz
warnings: Compiler warning on memset usage for non-trivial type
Problem: - IS_TRIVIALLY_CONSTRUCTIBLE macro does not work correctly resulting in `memset()` usage to set a non-trivial type to 0 when `nontrivial_t` is passed in from the tests. - Warning reported by GCC when compiling with `--enable-werror`. Solution: - Use the standard algorithm `std::fill_n()` and let the compiler determine the optimal way of looping or using `memset()`.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions