forked from bartvdbraak/blender
Cycles: Fix strict compilation warnings
This commit is contained in:
parent
411836d97c
commit
a537e7b426
@ -90,15 +90,17 @@ int system_cpu_thread_count()
|
||||
}
|
||||
|
||||
unsigned short system_cpu_process_groups(unsigned short max_groups,
|
||||
unsigned short *grpups)
|
||||
unsigned short *groups)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
unsigned short group_count = max_groups;
|
||||
if(!GetProcessGroupAffinity(GetCurrentProcess(), &group_count, grpups)) {
|
||||
if(!GetProcessGroupAffinity(GetCurrentProcess(), &group_count, groups)) {
|
||||
return 0;
|
||||
}
|
||||
return group_count;
|
||||
#else
|
||||
(void) max_groups;
|
||||
(void) groups;
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user