From 2f0d4634b4efb088950ece4c142dcd9ed0d54d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= Date: Sun, 27 Oct 2024 01:04:18 +0200 Subject: [PATCH] Remove several unused variables Found by Clang 19 --- CHOLMOD/Check/cholmod_check.c | 1 - CHOLMOD/Cholesky/cholmod_analyze.c | 1 - CHOLMOD/Cholesky/t_cholmod_resymbol_worker.c | 1 - CHOLMOD/Modify/cholmod_rowadd.c | 1 - CHOLMOD/Modify/cholmod_rowdel.c | 1 - SPEX/Python/SPEXpy/Source/spex_python_connect.c | 1 - 6 files changed, 6 deletions(-) diff --git a/CHOLMOD/Check/cholmod_check.c b/CHOLMOD/Check/cholmod_check.c index d84604fc0e..a08776af7f 100644 --- a/CHOLMOD/Check/cholmod_check.c +++ b/CHOLMOD/Check/cholmod_check.c @@ -216,7 +216,6 @@ static int check_common //-------------------------------------------------------------------------- RETURN_IF_NULL_COMMON (FALSE) ; - int init_print = print ; P2 ("%s", "\n") ; diff --git a/CHOLMOD/Cholesky/cholmod_analyze.c b/CHOLMOD/Cholesky/cholmod_analyze.c index 9a0161bb26..19bfb21e5d 100644 --- a/CHOLMOD/Cholesky/cholmod_analyze.c +++ b/CHOLMOD/Cholesky/cholmod_analyze.c @@ -421,7 +421,6 @@ cholmod_factor *CHOLMOD(analyze_p2) //-------------------------------------------------------------------------- n = A->nrow ; - ncol = A->ncol ; //-------------------------------------------------------------------------- // set the default strategy diff --git a/CHOLMOD/Cholesky/t_cholmod_resymbol_worker.c b/CHOLMOD/Cholesky/t_cholmod_resymbol_worker.c index 3b3d07a6c4..2ffc40ae49 100644 --- a/CHOLMOD/Cholesky/t_cholmod_resymbol_worker.c +++ b/CHOLMOD/Cholesky/t_cholmod_resymbol_worker.c @@ -29,7 +29,6 @@ static void TEMPLATE (cholmod_resymbol_worker) Int *Ap = A->p ; Int *Anz = A->nz ; bool apacked = A->packed ; - bool sorted = A->sorted ; int stype = A->stype ; Int *Li = L->i ; diff --git a/CHOLMOD/Modify/cholmod_rowadd.c b/CHOLMOD/Modify/cholmod_rowadd.c index 0b83e9dbcc..9affebfec1 100644 --- a/CHOLMOD/Modify/cholmod_rowadd.c +++ b/CHOLMOD/Modify/cholmod_rowadd.c @@ -136,7 +136,6 @@ int CHOLMOD(rowadd_mark) RETURN_IF_NULL (R, FALSE) ; RETURN_IF_XTYPE_INVALID (L, CHOLMOD_PATTERN, CHOLMOD_REAL, FALSE) ; RETURN_IF_XTYPE_INVALID (R, CHOLMOD_REAL, CHOLMOD_REAL, FALSE) ; - Int n = L->n ; Int k = kadd ; if (kadd >= L->n || k < 0) { diff --git a/CHOLMOD/Modify/cholmod_rowdel.c b/CHOLMOD/Modify/cholmod_rowdel.c index ce10ac1ff3..8b2ed82830 100644 --- a/CHOLMOD/Modify/cholmod_rowdel.c +++ b/CHOLMOD/Modify/cholmod_rowdel.c @@ -122,7 +122,6 @@ int CHOLMOD(rowdel_mark) RETURN_IF_NULL_COMMON (FALSE) ; RETURN_IF_NULL (L, FALSE) ; RETURN_IF_XTYPE_INVALID (L, CHOLMOD_PATTERN, CHOLMOD_REAL, FALSE) ; - Int n = L->n ; Int k = kdel ; if (kdel >= L->n || k < 0) { diff --git a/SPEX/Python/SPEXpy/Source/spex_python_connect.c b/SPEX/Python/SPEXpy/Source/spex_python_connect.c index 05fa12dafa..1bd0000c39 100644 --- a/SPEX/Python/SPEXpy/Source/spex_python_connect.c +++ b/SPEX/Python/SPEXpy/Source/spex_python_connect.c @@ -82,7 +82,6 @@ SPEX_info spex_python SPEX_options option = NULL; SPEX_create_default_options(&option); - SPEX_preorder order_in = ordering; option->order = ordering; //--------------------------------------------------------------------------