diff options
| author | Cory Fields <[email protected]> | 2018-09-27 18:08:39 -0400 |
|---|---|---|
| committer | fanquake <[email protected]> | 2018-12-09 21:08:48 +0800 |
| commit | 89282379baa503156d9b85f116ae5672f8588b39 (patch) | |
| tree | 9e2c4f7a4ea4a4c74817e7e9e58ff7b19b967759 /src/httpserver.cpp | |
| parent | Merge #14788: tests: Possible fix the permission error when the tests open th... (diff) | |
| download | discoin-89282379baa503156d9b85f116ae5672f8588b39.tar.xz discoin-89282379baa503156d9b85f116ae5672f8588b39.zip | |
threads: fix unitialized members in sched_param
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.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions