Skip to content

Commit

Permalink
Work around a compiler warning about passing a non-literal string as …
Browse files Browse the repository at this point in the history
…first argument to error().

references #542
  • Loading branch information
krivit committed Nov 28, 2023
1 parent 8f463ef commit 7bea38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/changestats.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void edgewise_cycle_census(Network *nwp, Vertex tail, Vertex head,
double *countv, long int maxlen, int semi);

static inline void cutoff_error(ModelTerm *mtp){
error(CHAR(STRING_ELT(getListElement(mtp->R, "cutoff.message"), 0)));
error("%s", CHAR(STRING_ELT(getListElement(mtp->R, "cutoff.message"), 0)));
}

#endif

0 comments on commit 7bea38a

Please sign in to comment.