Commit b9835fbf authored by Mathieu Valois's avatar Mathieu Valois
Browse files

be ISO C++ compliant for dynamic variable length

parent eed7e02f
Loading
Loading
Loading
Loading
+2 −0
Changes for Statsgen/include/statsgen.h: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@
#include <iostream>
#include <regex>

#define MAX_THREADS 32



/**
+2 −2
Changes for Statsgen/src/statsgen.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -103,8 +103,8 @@ int Statsgen::generate_stats() {

	int rc;
	int i;
	pthread_t threads[nbThread];
	struct thread_data td[nbThread];
	pthread_t threads[MAX_THREADS];
	struct thread_data td[MAX_THREADS];

	pthread_attr_t attr;
	void *status;