diff options
| author | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2019-08-15 13:26:55 +0000 |
|---|---|---|
| committer | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2019-08-15 13:26:55 +0000 |
| commit | d2ae0c4f443c47e68d33852d2953811648a153ed (patch) | |
| tree | 2946a6cbb1212e7956507b6dd4425d80af8e9e77 /openmp/runtime/src/thirdparty | |
| parent | 4d77e50e6ede51cee37f42f706d8f48b2f6f8acb (diff) | |
| download | bcm5719-llvm-d2ae0c4f443c47e68d33852d2953811648a153ed.tar.gz bcm5719-llvm-d2ae0c4f443c47e68d33852d2953811648a153ed.zip | |
[OpenMP] Enable warning about "implicit fallthrough"
Fix last warned location in ittnotify_static.cpp using the defined
macro KMP_FALLTHROUGH().
Differential Revision: https://reviews.llvm.org/D65871
llvm-svn: 369003
Diffstat (limited to 'openmp/runtime/src/thirdparty')
| -rw-r--r-- | openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp b/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp index 78ab62daeb9..c48b3f420bb 100644 --- a/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp +++ b/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp @@ -8,6 +8,7 @@ //===----------------------------------------------------------------------===// #include "kmp_config.h" +#include "kmp_os.h" #include "ittnotify_config.h" #if ITT_PLATFORM==ITT_PLATFORM_WIN @@ -1096,6 +1097,7 @@ ITT_EXTERN_C int _N_(init_ittlib)(const char* lib_name, __itt_group_id init_grou switch (lib_version) { case 0: groups = __itt_group_legacy; + KMP_FALLTHROUGH(); case 1: /* Fill all pointers from dynamic library */ for (i = 0; _N_(_ittapi_global).api_list_ptr[i].name != NULL; i++) |

