Skip to content

Commit

Permalink
In C function declarations, use void
Browse files Browse the repository at this point in the history
  • Loading branch information
wch committed Apr 21, 2023
1 parent ba70887 commit 57d9cb5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ Check these declarations against the C/Fortran source code.
*/

/* .Call calls */
extern SEXP _later_ensureInitialized();
extern SEXP _later_ensureInitialized(void);
extern SEXP _later_execCallbacks(SEXP, SEXP, SEXP);
extern SEXP _later_idle(SEXP);
extern SEXP _later_execLater(SEXP, SEXP, SEXP);
extern SEXP _later_cancel(SEXP, SEXP);
extern SEXP _later_nextOpSecs(SEXP);
extern SEXP _later_testCallbackOrdering();
extern SEXP _later_testCallbackOrdering(void);
extern SEXP _later_createCallbackRegistry(SEXP, SEXP);
extern SEXP _later_deleteCallbackRegistry(SEXP);
extern SEXP _later_existsCallbackRegistry(SEXP);
extern SEXP _later_notifyRRefDeleted(SEXP);
extern SEXP _later_setCurrentRegistryId(SEXP);
extern SEXP _later_getCurrentRegistryId();
extern SEXP _later_getCurrentRegistryId(void);
extern SEXP _later_list_queue_(SEXP);
extern SEXP _later_log_level(SEXP);
extern SEXP _later_using_ubsan();
extern SEXP _later_using_ubsan(void);

static const R_CallMethodDef CallEntries[] = {
{"_later_ensureInitialized", (DL_FUNC) &_later_ensureInitialized, 0},
Expand All @@ -48,7 +48,7 @@ static const R_CallMethodDef CallEntries[] = {

uint64_t execLaterNative(void (*func)(void*), void* data, double secs);
uint64_t execLaterNative2(void (*func)(void*), void* data, double secs, int loop);
int apiVersion();
int apiVersion(void);

void R_init_later(DllInfo *dll)
{
Expand Down

0 comments on commit 57d9cb5

Please sign in to comment.