Move variable declarations out of #if guard, NFC

They are used in other sides of the #if/#else.
This commit is contained in:
Krzysztof Parzyszek 2022-11-12 17:27:59 -06:00
parent 7854a1abfd
commit 6b9a79f9a2

View File

@ -131,13 +131,14 @@ void __kmp_affinity_determine_capable(const char *env_var) {
#define KMP_CPU_SET_SIZE_LIMIT (sizeof(cpuset_t))
#endif
int verbose = __kmp_affinity.flags.verbose;
int warnings = __kmp_affinity.flags.warnings;
enum affinity_type type = __kmp_affinity.type;
#if KMP_OS_LINUX
long gCode;
unsigned char *buf;
buf = (unsigned char *)KMP_INTERNAL_MALLOC(KMP_CPU_SET_SIZE_LIMIT);
int verbose = __kmp_affinity.flags.verbose;
int warnings = __kmp_affinity.flags.warnings;
enum affinity_type type = __kmp_affinity.type;
// If the syscall returns a suggestion for the size,
// then we don't have to search for an appropriate size.