Skip to content
Snippets Groups Projects
Commit 09b91e8b authored by Ben Gamari's avatar Ben Gamari
Browse files

rts: Drop field initializer on thread_basic_info_data_t

This struct has a number of fields and we only care that the value is
initialized with zeros. This eliminates the warnings noted in #17905.
parent 9dec8600
Branches wip/T17905
No related tags found
1 merge request!4078rts: Drop field initializer on thread_basic_info_data_t
Pipeline #24841 passed with warnings
......@@ -71,7 +71,7 @@ Time getCurrentThreadCPUTime(void)
// support clock_getcpuclockid. Hence we prefer to use the Darwin-specific
// path on Darwin, even if clock_gettime is available.
#if defined(darwin_HOST_OS)
thread_basic_info_data_t info = { 0 };
thread_basic_info_data_t info = { };
mach_msg_type_number_t info_count = THREAD_BASIC_INFO_COUNT;
kern_return_t kern_err = thread_info(mach_thread_self(), THREAD_BASIC_INFO,
(thread_info_t) &info, &info_count);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment