Index: runtime/src/z_Linux_util.cpp =================================================================== --- runtime/src/z_Linux_util.cpp +++ runtime/src/z_Linux_util.cpp @@ -2084,7 +2084,6 @@ int stat_file = -1; int stat_path_fixed_len; - int total_processes = 0; // Total number of processes in system. int total_threads = 0; // Total number of threads in system. double call_time = 0.0; @@ -2132,15 +2131,6 @@ // process' directory. if (proc_entry->d_type == DT_DIR && isdigit(proc_entry->d_name[0])) { - ++total_processes; - // Make sure init process is the very first in "/proc", so we can replace - // strcmp( proc_entry->d_name, "1" ) == 0 with simpler total_processes == - // 1. We are going to check that total_processes == 1 => d_name == "1" is - // true (where "=>" is implication). Since C++ does not have => operator, - // let us replace it with its equivalent: a => b == ! a || b. - KMP_DEBUG_ASSERT(total_processes != 1 || - strcmp(proc_entry->d_name, "1") == 0); - // Construct task_path. task_path.used = task_path_fixed_len; // Reset task_path to "/proc/". __kmp_str_buf_cat(&task_path, proc_entry->d_name,