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:
2017-07-20 23:51:15 +02:00
parent 0d4fd7528f
commit db8bc1d982
9 changed files with 25 additions and 24 deletions

View File

@@ -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,