diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2019-01-16 16:52:54 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2019-01-16 17:09:12 +0100 |
commit | fcb6694a9945d2a02f40587e18bd395ef64048e0 (patch) | |
tree | bf8664c712a0e4bce76b328eb93d0d26a9d5eb1d /contrib | |
parent | f71c2ea6620a262dd97ba01bdd3dfb3e619cb8cb (diff) | |
parent | 89282379baa503156d9b85f116ae5672f8588b39 (diff) | |
download | bitcoin-fcb6694a9945d2a02f40587e18bd395ef64048e0.tar.xz |
Merge #14839: [rebase] threads: fix unitialized members in sched_param
89282379baa503156d9b85f116ae5672f8588b39 threads: fix unitialized members in sched_param (Cory Fields)
Pull request description:
Rebased theuni's #14342.
Building with gcc 8.2 against musl libc, which apparently has more attributes available in its sched_param. The following warnings were produced:
warning: missing initializer for member 'sched_param::sched_ss_low_priority' [-Wmissing-field-initializers]
warning: missing initializer for member 'sched_param::sched_ss_repl_period' [-Wmissing-field-initializers]
warning: missing initializer for member 'sched_param::sched_ss_init_budget' [-Wmissing-field-initializers]
warning: missing initializer for member 'sched_param::sched_ss_max_repl' [-Wmissing-field-initializers]
Since the current thread may have interesting non-zero values for these fields, we want to be sure to only change the intended one. Query and modify the current sched_param rather than starting from a zeroed one.
Tree-SHA512: a0bedbcf0130b3ee8261bb704e4bf6c9b760ad377c8a28c258765d54e54462b76707efc188b936b0a635cdd2bdf6b3b9298ab06ba361dc4806150b670d9702a3
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions