Skip to content

Commit 07db8b4

Browse files
committed
Small adjustments per compiler warnings.
1 parent 0d2c42d commit 07db8b4

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

src/solvers/enummixed/clique.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,13 +565,12 @@ void CliqueEnumerator::workonco(int numco, Array<int> &firstedge, Array<Edge> &e
565565
int clique1[MAXM], clique2[MAXN];
566566
// CLIQUE for first and second node class
567567

568-
int co;
569-
int countco = 0;
568+
// int countco = 0;
570569

571-
for (co = 1; co <= numco; co++) {
570+
for (int co = 1; co <= numco; co++) {
572571
if (firstedge[co]) {
573572
// found a nonzero component list
574-
countco++;
573+
// countco++;
575574
// printf("\nConnected component %d:\n", countco) ;
576575

577576
genincidence(firstedge[co], edgelist, orignode1, orignode2, connected, &m, &n);

src/solvers/enummixed/clique.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class CliqueEnumerator {
227227
int sn1, int *sc1, int ec1, // start NOT1, start CAND1, end CAND1
228228
int sn2, int sc2, int ec2, // start NOT2, start CAND2, end CAND2
229229
int tos, // top of stack
230-
int orignode1[], int orignode2[]);
230+
int orignode1[MAXM], int orignode2[MAXN]);
231231
void candtry2(int stk[], // stack
232232
bool connected[MAXM][MAXN],
233233
int cand, // the candidate from NODES2 to be added to CLIQUE

src/solvers/enummixed/enummixed.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,10 @@ EnumMixedStrategySolveDetailed(const Game &p_game, StrategyCallbackType<T> p_onE
143143
for (size_t i = 1; i <= vert2id.size(); vert2id[i++] = 0)
144144
;
145145

146-
int i = 0;
147146
int id1 = 0, id2 = 0;
148147

149148
for (int i2 = 2; i2 <= solution->m_v2; i2++) {
150149
const BFS<T> &bfs1 = verts2[i2];
151-
i++;
152150
for (int i1 = 2; i1 <= solution->m_v1; i1++) {
153151
const BFS<T> &bfs2 = verts1[i1];
154152

0 commit comments

Comments
 (0)