Skip to content

Commit 20baa9a

Browse files
committed
[openmp][runtime] Silence warnings
This fixes several of those when building with MSVC on Windows: ``` [3625/7617] Building CXX object projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_affinity.cpp.obj C:\src\git\llvm-project\openmp\runtime\src\kmp_affinity.cpp(2637): warning C4062: enumerator 'KMP_HW_UNKNOWN' in switch of enum 'kmp_hw_t' is not handled C:\src\git\llvm-project\openmp\runtime\src\kmp.h(628): note: see declaration of 'kmp_hw_t' ```
1 parent af09dd6 commit 20baa9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openmp/runtime/src/kmp_affinity.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2634,8 +2634,9 @@ static int __kmp_topology_type_2_intel_type(kmp_hw_t type) {
26342634
return INTEL_LEVEL_TYPE_MODULE;
26352635
case KMP_HW_DIE:
26362636
return INTEL_LEVEL_TYPE_DIE;
2637+
default:
2638+
return INTEL_LEVEL_TYPE_INVALID;
26372639
}
2638-
return INTEL_LEVEL_TYPE_INVALID;
26392640
}
26402641

26412642
struct cpuid_level_info_t {

0 commit comments

Comments
 (0)