Skip to content

Commit

Permalink
suppress "A function declaration without a prototype is deprecated in…
Browse files Browse the repository at this point in the history
… all versions of C"
  • Loading branch information
recp committed Sep 14, 2023
1 parent 2df4d72 commit 4bd102b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/default/default.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ DsAllocator ds__alc = {

DS_HIDE
DsAllocator*
ds_def_alc() {
ds_def_alc(void) {
return &ds__alc;
}
4 changes: 2 additions & 2 deletions src/rb.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ rb_newtree(DsAllocator *allocator,

DS_EXPORT
RBTree*
rb_newtree_str() {
rb_newtree_str(void) {
return rb_newtree(NULL, NULL, NULL);
}

DS_EXPORT
RBTree*
rb_newtree_ptr() {
rb_newtree_ptr(void) {
return rb_newtree(NULL,
ds_cmp_ptr,
ds_print_ptr);
Expand Down
2 changes: 1 addition & 1 deletion test/include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ typedef struct test_entry_t {

#define TEST_IMPL_ARG1(FUN) \
test_status_t test_ ## FUN (void); \
test_status_t test_ ## FUN()
test_status_t test_ ## FUN(void)

#define TEST_IMPL_ARG2(PREFIX, FUN) TEST_IMPL_ARG1(PREFIX ## FUN)
#define TEST_IMPL_ARG3(arg1, arg2, arg3, ...) arg3
Expand Down

0 comments on commit 4bd102b

Please sign in to comment.