Skip to content

Commit df0f234

Browse files
committed
another C compiler fix
1 parent b46ca22 commit df0f234

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

pkg/DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Description: Implements an approximate string matching version of R's native
2323
vectors representing generic sequences. This package is built for speed and
2424
runs in parallel by using 'openMP'. An API for C or C++ is exposed as well.
2525
Reference: MPJ van der Loo (2014) <doi:10.32614/RJ-2014-011>.
26-
Version: 0.9.9
26+
Version: 0.9.10
2727
Depends:
2828
R (>= 2.15.3)
2929
URL: https://github.com/markvanderloo/stringdist

pkg/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
version 0.9.10
2+
- Fixed another warning generated by new C compiler that I overlooked.
3+
(Thanks to the CRAN team for the head's up)
4+
15
version 0.9.9
26
- Fixed warnings generated by new C compiler. (function prototypes must
37
now be defined completely). (Thanks to Kurt Hornik for the head's up.)

pkg/src/dist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ double lv_dist(unsigned int *, int, unsigned int *, int, double *, double *);
1616
double osa_dist(unsigned int *, int, unsigned int *, int, double *, double *);
1717
double jaro_winkler_dist(unsigned int *, int, unsigned int *, int, double, double, double *, double *);
1818
qtree *new_qtree(int, int);
19-
void free_qtree(qtree *);
19+
void free_qtree(void);
2020
double qgram_dist(unsigned int *, int, unsigned int *, int, unsigned int, qtree **, int);
2121
double soundex_dist(unsigned int *, int, unsigned int *, int, unsigned int *);
2222
double running_cosine_dist(unsigned int *, int, unsigned int *, int, unsigned int, qtree **, double *);

pkg/src/stringdist.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ void close_stringdist(Stringdist *S){
110110
free_dictionary(S->dict);
111111
}
112112
if (S->distance == qgram || S->distance == cosine || S->distance == jaccard){
113-
free_qtree(S->tree);
113+
free_qtree();
114114
}
115115
free(S);
116116
}
117117

118118
void reset_stringdist(Stringdist *S){
119119
if (S->distance == running_cosine){
120-
free_qtree(S->tree);
120+
free_qtree();
121121
S->tree = new_qtree(S->q, 2L);
122122
}
123123
}

0 commit comments

Comments
 (0)