From 7e6c774409474250dfe3137574a2869a8697ca6d Mon Sep 17 00:00:00 2001 From: "James D. Mitchell" Date: Wed, 3 Apr 2024 14:42:15 +0100 Subject: [PATCH] Fix compiler warnings --- src/cliques.c | 7 +++---- src/schreier-sims.c | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/cliques.c b/src/cliques.c index b1d0ef57e..41502a9f8 100644 --- a/src/cliques.c +++ b/src/cliques.c @@ -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 diff --git a/src/schreier-sims.c b/src/schreier-sims.c index c915acd61..694cf5386 100644 --- a/src/schreier-sims.c +++ b/src/schreier-sims.c @@ -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]);