diff options
| author | Lenny Maiorani <[email protected]> | 2018-11-03 21:15:05 -0600 |
|---|---|---|
| committer | Lenny Maiorani <[email protected]> | 2018-11-04 20:50:40 -0700 |
| commit | 76e13b586ff690dd3312f719f305c0d1021cd505 (patch) | |
| tree | 04fa746cd6c9b2cb088895df4ebe8144dfd5701d /src/httpserver.cpp | |
| parent | Merge #14528: travis: Compile once on xenial (diff) | |
| download | discoin-76e13b586ff690dd3312f719f305c0d1021cd505.tar.xz discoin-76e13b586ff690dd3312f719f305c0d1021cd505.zip | |
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 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions