Skip to content

Commit 0f7760a

Browse files
author
ripley
committed
pacify an over-eager clang 21 warning
git-svn-id: https://svn.r-project.org/R/trunk@89016 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent fda012c commit 0f7760a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/lapack/Lapack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ static SEXP La_rs(SEXP x, SEXP only_values)
173173
double vl = 0.0, vu = 0.0, abstol = 0.0;
174174
/* valgrind seems to think vu should be set, but it is documented
175175
not to be used if range='a' */
176-
int il, iu, *isuppz;
176+
int il = 0, iu = 0, *isuppz;
177+
/* il and iu are unused if range='a', but clang-21 warns */
177178

178179
xdims = INTEGER(coerceVector(getAttrib(x, R_DimSymbol), INTSXP));
179180
n = xdims[0];

0 commit comments

Comments
 (0)