Avoid warning with C++
This commit is contained in:
1 parent
64ef1f3aba
commit
9909877771
1 file changed
+3
-2
@@ -113,8 +113,9 @@ static void conso2(void *p)
|
||||
|
||||
static void test3(size_t n)
|
||||
{
|
||||
m_thread_t idx[n];
|
||||
|
||||
m_thread_t idx[MAX_N];
|
||||
assert (n <= MAX_N);
|
||||
|
||||
genint_init(global, n);
|
||||
for(size_t i = 0; i < n; i++) {
|
||||
m_thread_create (idx[i], conso2, (void*)&n);
|
||||
|
||||
Reference in new issue
Block a user