This is an automated email from the ASF dual-hosted git repository.
paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git
The following commit(s) were added to refs/heads/main by this push:
new 9128f21 fix(r): Use strict prototypes in all internal C functions
(#151)
9128f21 is described below
commit 9128f21da165a717768e7a6be1ae25132f454c35
Author: Dewey Dunnington <[email protected]>
AuthorDate: Wed Mar 8 09:12:30 2023 -0400
fix(r): Use strict prototypes in all internal C functions (#151)
Closes #150.
---
r/src/init.c | 4 ++--
r/src/schema.c | 2 +-
r/src/version.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/r/src/init.c b/r/src/init.c
index 73e4f4f..3b88b88 100644
--- a/r/src/init.c
+++ b/r/src/init.c
@@ -78,8 +78,8 @@ extern SEXP nanoarrow_c_schema_set_dictionary(SEXP
schema_mut_xptr, SEXP diction
extern SEXP nanoarrow_c_preserved_count(void);
extern SEXP nanoarrow_c_preserved_empty(void);
extern SEXP nanoarrow_c_preserve_and_release_on_other_thread(SEXP obj);
-extern SEXP nanoarrow_c_version();
-extern SEXP nanoarrow_c_version_runtime();
+extern SEXP nanoarrow_c_version(void);
+extern SEXP nanoarrow_c_version_runtime(void);
static const R_CallMethodDef CallEntries[] = {
{"nanoarrow_c_make_altrep_chr", (DL_FUNC)&nanoarrow_c_make_altrep_chr, 1},
diff --git a/r/src/schema.c b/r/src/schema.c
index 8fd094a..02516bd 100644
--- a/r/src/schema.c
+++ b/r/src/schema.c
@@ -399,7 +399,7 @@ static void finalize_buffer_xptr(SEXP buffer_xptr) {
}
}
-static SEXP buffer_owning_xptr() {
+static SEXP buffer_owning_xptr(void) {
struct ArrowBuffer* buffer =
(struct ArrowBuffer*)ArrowMalloc(sizeof(struct ArrowBuffer));
if (buffer == NULL) {
diff --git a/r/src/version.c b/r/src/version.c
index 6509c01..c099bde 100644
--- a/r/src/version.c
+++ b/r/src/version.c
@@ -21,6 +21,6 @@
#include "nanoarrow.h"
-SEXP nanoarrow_c_version() { return Rf_mkString(NANOARROW_VERSION); }
+SEXP nanoarrow_c_version(void) { return Rf_mkString(NANOARROW_VERSION); }
-SEXP nanoarrow_c_version_runtime() { return
Rf_mkString(ArrowNanoarrowVersion()); }
+SEXP nanoarrow_c_version_runtime(void) { return
Rf_mkString(ArrowNanoarrowVersion()); }