Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed Apr 3, 2024
1 parent 6300e3b commit 7e6c774
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/cliques.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,11 @@ static void get_orbit_reps_bitarray(BitArray* bit_array,
static void init_graph_from_digraph_obj(Graph* const graph, Obj digraph_obj) {
DIGRAPHS_ASSERT(graph != NULL);
DIGRAPHS_ASSERT(CALL_1ARGS(IsDigraph, digraph_obj) == True);
UInt const nr = DigraphNrVertices(digraph_obj);
Obj out = FuncOutNeighbours(0L, digraph_obj);
Obj adj_mat = FuncADJACENCY_MATRIX(0L, digraph_obj);
Int const nr = DigraphNrVertices(digraph_obj);
Obj adj_mat = FuncADJACENCY_MATRIX(0L, digraph_obj);
DIGRAPHS_ASSERT(nr < MACHINE_MAXVERTS);
DIGRAPHS_ASSERT(IS_PLIST(adj_mat));
DIGRAPHS_ASSERT(IS_PLIST(out));
DIGRAPHS_ASSERT(IS_PLIST(FuncOutNeighbours(0L, digraph_obj)));
clear_graph(graph, nr);

// Only include symmetric edges
Expand Down
2 changes: 1 addition & 1 deletion src/schreier-sims.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ SchreierSims* new_schreier_sims(void) {
return ss;
}

void init_ss(SchreierSims* ss, uint16_t degree) {
static void init_ss(SchreierSims* ss, uint16_t degree) {
DIGRAPHS_ASSERT(degree <= HOMOS_STRUCTURE_SIZE);
for (uint16_t i = 0; i < degree; ++i) {
clear_perm_coll(ss->strong_gens[i]);
Expand Down

0 comments on commit 7e6c774

Please sign in to comment.