Skip to content

Commit

Permalink
Address warnings from gcc on linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Dec 14, 2023
1 parent 71a1bdf commit f68cfde
Show file tree
Hide file tree
Showing 4 changed files with 1,033 additions and 1,037 deletions.
2 changes: 1 addition & 1 deletion cython/core/abelian_group.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ cdef class PresentationMatrix():
Continue until no units remain. When a generator is removed,
remember its column index.
"""
cdef int temp, m, i, j, k, l
cdef int temp, m, i = 0, j = 0, k, l
while len(self._units) > 0:
for i, j in self._units:
break
Expand Down
2 changes: 1 addition & 1 deletion cython/core/basic.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ class Isometry():


cdef IsometryListToIsometries(IsometryList *isometries):
cdef int n, c, i, j, c_cusp_image
cdef int n, c, i = 0, j = 0, c_cusp_image
cdef MatrixInt22 c_cusp_map
n = isometry_list_size(isometries)
c = isometry_list_num_cusps(isometries)
Expand Down
4 changes: 2 additions & 2 deletions kernel/kernel_code/Dirichlet.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,8 @@ static void simplify_generators(
*bB,
*best_aA = NULL,
*best_bB = NULL;
int best_i,
best_j;
int best_i = 0,
best_j = 0;
Real max_improvement,
improvement;
int i,
Expand Down
Loading

0 comments on commit f68cfde

Please sign in to comment.