Fix thread_local test
If _Thread_local is used on a block-scope declaration, it must be combined with either static or extern to decide linkage. Change-Id: I228b3520767197c6cdf5134ff5a666ab2aca33ea Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
ab28ef132e
commit
bcd5532fcb
|
|
@ -110,7 +110,7 @@ Q_STATIC_ASSERT(!!1);
|
|||
static thread_local int gt_var;
|
||||
void thread_local_test()
|
||||
{
|
||||
thread_local int t_var;
|
||||
static thread_local int t_var;
|
||||
t_var = gt_var;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue