Skip to content

Commit

Permalink
Suppress new diagnostic coming from clang-18.
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvassilev committed Apr 1, 2024
1 parent 7ccce16 commit 9f1cc28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Arrays/ArrayInputsReverseMode.C
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9f1cc28

Please sign in to comment.