Skip to content

Commit 7f1cd55

Browse files
committed
[OpenMP] Ignore the error introduced by -Wvla-cxx-extension on ompt-geenral.cpp.
1 parent c752efb commit 7f1cd55

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

openmp/runtime/src/ompt-general.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,9 @@ OMPT_API_ROUTINE int ompt_get_place_proc_ids(int place_num, int ids_size,
708708
return 0;
709709
#else
710710
int i, count;
711+
#ifdef __clang_major__ >= 18
712+
#pragma clang diagnostic ignored "-Wvla-cxx-extension"
713+
#endif
711714
int tmp_ids[ids_size];
712715
for (int j = 0; j < ids_size; j++)
713716
tmp_ids[j] = 0;

0 commit comments

Comments
 (0)