Fix a few harmless maybe uninitialized warnings with GCC 5.4.
GCC seems to detect uninitialized into function calls now, but then isn't always smart enough to see that it is actually initialized. Disabling this warning entirely seems a bit too much, so initialize a bit more now.
This commit is contained in:
@@ -206,9 +206,9 @@ void TaskScheduler::init(int num_threads)
|
||||
threads.resize(num_threads);
|
||||
|
||||
const int num_groups = system_cpu_group_count();
|
||||
unsigned short num_process_groups;
|
||||
unsigned short num_process_groups = 0;
|
||||
vector<unsigned short> process_groups;
|
||||
int current_group_threads;
|
||||
int current_group_threads = 0;
|
||||
if(num_groups > 1) {
|
||||
process_groups.resize(num_groups);
|
||||
num_process_groups = system_cpu_process_groups(num_groups,
|
||||
|
||||
Reference in New Issue
Block a user