From 9f1cc2818a8ea0597c3f7165b9ba2b9857326802 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sat, 30 Mar 2024 14:10:42 +0000 Subject: [PATCH] Suppress new diagnostic coming from clang-18. --- test/Arrays/ArrayInputsReverseMode.C | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Arrays/ArrayInputsReverseMode.C b/test/Arrays/ArrayInputsReverseMode.C index d16e3da42..618dc8874 100644 --- a/test/Arrays/ArrayInputsReverseMode.C +++ b/test/Arrays/ArrayInputsReverseMode.C @@ -224,8 +224,12 @@ double func4(double x) { //CHECK-NEXT: } double func5(int k) { + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wunknown-warning-option" + #pragma clang diagnostic ignored "-Wvla-cxx-extension" int n = k; double arr[n]; + #pragma clang diagnostic pop for (int i = 0; i < n; i++) { arr[i] = k; }