Skip to content

Commit 15d136a

Browse files
author
Jan Luca van den Busch
committed
use void for no-arg functions
1 parent 7e830da commit 15d136a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

include/ballnode.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ double bnode_dualcount_radius(const BallNode *, const BallNode *, double);
6363
void bnode_dualcount_range(const BallNode *, const BallNode *, DistHistogram *);
6464

6565
// from ballnode_stats.c
66+
StatsVector *statvec_new(void);
6667
StatsVector *statvec_new_reserve(int64_t);
6768
void statvec_free(StatsVector *);
6869
int statvec_resize(StatsVector *, int64_t);

src/ballnode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ typedef struct {
1313
double max;
1414
} Limits;
1515

16-
static Limits limits_new();
16+
static Limits limits_new(void);
1717
static void limits_update(Limits *limits, double value);
1818
static double limits_get_range(Limits *limits);
1919

@@ -28,7 +28,7 @@ static Point *ptslc_quickselect(PointSlice *slice, Point *partition, enum Axis a
2828
static Point *ptslc_partition_maxspread_axis(PointSlice *slice);
2929

3030

31-
static Limits limits_new() {
31+
static Limits limits_new(void) {
3232
return (Limits){INFINITY, -INFINITY};
3333
}
3434

src/ballnode_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "ballnode.h"
55
#include "balltree_macros.h"
66

7-
StatsVector *statvec_new() {
7+
StatsVector *statvec_new(void) {
88
return statvec_new_reserve(32L);
99
}
1010

0 commit comments

Comments
 (0)