diff --git a/gprofng/examples/mxv-pthreads/src/main.c b/gprofng/examples/mxv-pthreads/src/main.c index 625c60484d1..8596763b918 100644 --- a/gprofng/examples/mxv-pthreads/src/main.c +++ b/gprofng/examples/mxv-pthreads/src/main.c @@ -28,9 +28,10 @@ #include "mydefs.h" +bool verbose; + int main (int argc, char **argv) { - bool verbose = false; thread_data *thread_data_arguments; pthread_t *pthread_ids; @@ -62,8 +63,7 @@ int main (int argc, char **argv) &number_of_rows, &number_of_columns, &repeat_count, - &number_of_threads, - &verbose); + &number_of_threads); if (verbose) printf ("Verbose mode enabled\n"); @@ -191,11 +191,16 @@ int main (int argc, char **argv) * Release the allocated memory and end execution. * ----------------------------------------------------------------------------- */ + for (int64_t i=0; i