Skip to content

Commit

Permalink
suppress warning in GSL code
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaller committed Aug 30, 2024
1 parent b3b04c2 commit 412038c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gsl/linalg/tridiag.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ solve_tridiag(
}

/* backsubstitution */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wuninitialized"
x[x_stride * (N - 1)] = c[N - 1];
#pragma clang diagnostic pop
#pragma GCC diagnostic pop
if (N >= 2)
{
for (i = N - 2, j = 0; j <= N - 2; j++, i--)
Expand Down

0 comments on commit 412038c

Please sign in to comment.