Skip to content

Commit

Permalink
add void argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonov548 authored and krlmlr committed Apr 2, 2023
1 parent 2f38c5f commit f6c816e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rinterface_extra.c
Original file line number Diff line number Diff line change
Expand Up @@ -2389,12 +2389,12 @@ void R_igraph_set_in_r_check(bool set) {
R_igraph_in_r_check = set;
}

void R_igraph_error() {
void R_igraph_error(void) {
R_igraph_errors_count = 0;
Rf_error("%s", R_igraph_error_reason);
}

void R_igraph_warning() {
void R_igraph_warning(void) {
if (R_igraph_warnings_count > 0) {
int count = R_igraph_warnings_count;
R_igraph_warnings_count = 0;
Expand All @@ -2403,7 +2403,7 @@ void R_igraph_warning() {
}
}

void R_igraph_interrupt() {
void R_igraph_interrupt(void) {
R_igraph_errors_count = 0;
// FIXME: Call into R to run
// stop(structure(list(message = R_igraph_error_reason), class = c("interrupt", "condition")))
Expand Down

0 comments on commit f6c816e

Please sign in to comment.