diff options
author | Lenny Maiorani <lenny@colorado.edu> | 2018-11-03 21:15:05 -0600 |
---|---|---|
committer | Lenny Maiorani <lenny@colorado.edu> | 2018-11-04 20:50:40 -0700 |
commit | 76e13b586ff690dd3312f719f305c0d1021cd505 (patch) | |
tree | 04fa746cd6c9b2cb088895df4ebe8144dfd5701d /.appveyor.yml | |
parent | 742ee213499194f97e59dae4971f1474ae7d57ad (diff) | |
download | bitcoin-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 '.appveyor.yml')
0 files changed, 0 insertions, 0 deletions