Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CCOLAMD] fix set but unused variable Int cs #39

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions CCOLAMD/Source/ccolamd.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,9 +671,9 @@ typedef struct CColamd_Col_struct
} shared1 ;
union
{
Int score ;
Int score ;
Int order ;
} shared2 ;
} shared2 ;
union
{
Int headhash ; /* head of a hash bucket, if col is at the head of */
Expand Down Expand Up @@ -728,9 +728,9 @@ typedef struct CColamd_Row_struct
#define MIN(a,b) (((a) < (b)) ? (a) : (b))

/* Routines are either PUBLIC (user-callable) or PRIVATE (not user-callable) */
#define GLOBAL
#define GLOBAL
#define PUBLIC
#define PRIVATE static
#define PRIVATE static

#define DENSE_DEGREE(alpha,n) \
((Int) MAX (16.0, (alpha) * sqrt ((double) (n))))
Expand Down Expand Up @@ -808,9 +808,9 @@ PRIVATE Int ccolamd_debug ;
#endif

PRIVATE void ccolamd_get_debug
(
(
char *method
) ;
) ;

PRIVATE void debug_mark
(
Expand Down Expand Up @@ -1560,7 +1560,6 @@ PUBLIC Int CCOLAMD_2 /* returns TRUE if successful, FALSE otherwise */
Int *dead_cols ;
Int set1 ;
Int set2 ;
Int cs ;

int ok ;

Expand Down Expand Up @@ -1909,7 +1908,6 @@ PUBLIC Int CCOLAMD_2 /* returns TRUE if successful, FALSE otherwise */
p [k] = col ;
ASSERT (A [col] == EMPTY) ;

cs = CMEMBER (col) ;
ASSERT (k >= cset_start [cs] && k < cset_start [cs+1]) ;

A [col] = k ;
Expand All @@ -1926,7 +1924,6 @@ PUBLIC Int CCOLAMD_2 /* returns TRUE if successful, FALSE otherwise */
if (A [col] == EMPTY)
{
k = Col [col].shared2.order ;
cs = CMEMBER (col) ;
#ifndef NDEBUG
dead_cols [cs]-- ;
#endif
Expand Down Expand Up @@ -3902,7 +3899,7 @@ GLOBAL void CCOLAMD_apply_order
/* === CCOLAMD_fsize ======================================================== */
/* ========================================================================== */

/* Determine the largest frontal matrix size for each subtree.
/* Determine the largest frontal matrix size for each subtree.
* Only required to sort the children of each
* node prior to postordering the column elimination tree. */

Expand Down Expand Up @@ -4014,7 +4011,7 @@ GLOBAL void CCOLAMD_postorder
if (CMEMBER (Front_cols[parent]) == CMEMBER (Front_cols[j]))
{
Child [parent] = j ;
}
}
}
}
}
Expand Down