Skip to content

Commit 5fea700

Browse files
committed
[libcn] (tree-wide) -Wstrict-prototypes
1 parent ba3fc73 commit 5fea700

File tree

16 files changed

+45
-45
lines changed

16 files changed

+45
-45
lines changed

runtime/libcn/include/bennet-exp/size.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ void bennet_set_size(size_t sz);
1010
size_t bennet_get_max_size(void);
1111
void bennet_set_max_size(size_t sz);
1212

13-
uint16_t bennet_depth();
14-
uint16_t bennet_max_depth();
13+
uint16_t bennet_depth(void);
14+
uint16_t bennet_max_depth(void);
1515
void bennet_set_max_depth(uint16_t msd);
16-
void bennet_increment_depth();
17-
void bennet_decrement_depth();
16+
void bennet_increment_depth(void);
17+
void bennet_decrement_depth(void);
1818

1919
void bennet_set_size_split_backtracks_allowed(uint16_t allowed);
20-
uint16_t bennet_get_size_split_backtracks_allowed();
20+
uint16_t bennet_get_size_split_backtracks_allowed(void);
2121

2222
void bennet_set_input_timeout(uint64_t seconds);
2323
uint64_t bennet_get_input_timeout(void);

runtime/libcn/include/bennet/failure.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ int bennet_failure_remap_blamed_many(char* from[], char* to[]);
4242

4343
void bennet_failure_set_allocation_needed(size_t sz);
4444

45-
size_t bennet_failure_get_allocation_needed();
45+
size_t bennet_failure_get_allocation_needed(void);
4646

4747
#endif // BENNET_FAILURE_H

runtime/libcn/include/bennet/size.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ void bennet_set_size(size_t sz);
1010
size_t bennet_get_max_size(void);
1111
void bennet_set_max_size(size_t sz);
1212

13-
uint16_t bennet_depth();
14-
uint16_t bennet_max_depth();
13+
uint16_t bennet_depth(void);
14+
uint16_t bennet_max_depth(void);
1515
void bennet_set_max_depth(uint16_t msd);
16-
void bennet_increment_depth();
17-
void bennet_decrement_depth();
16+
void bennet_increment_depth(void);
17+
void bennet_decrement_depth(void);
1818

1919
void bennet_set_size_split_backtracks_allowed(uint16_t allowed);
20-
uint16_t bennet_get_size_split_backtracks_allowed();
20+
uint16_t bennet_get_size_split_backtracks_allowed(void);
2121

2222
void bennet_set_input_timeout(uint64_t seconds);
2323
uint64_t bennet_get_input_timeout(void);

runtime/libcn/include/cn-executable/bump_alloc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void* cn_bump_malloc(size_t nbytes);
1919

2020
void* cn_bump_calloc(size_t count, size_t size);
2121

22-
void cn_bump_free_all();
22+
void cn_bump_free_all(void);
2323

2424
typedef struct {
2525
uint16_t block;
@@ -32,7 +32,7 @@ void cn_bump_free_after(cn_bump_frame_id frame_id);
3232

3333
void cn_bump_free(void*);
3434

35-
void cn_bump_print();
35+
void cn_bump_print(void);
3636

3737
#ifdef __cplusplus
3838
}

runtime/libcn/include/cn-executable/utils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ void initialise_error_msg_info_(
7272
#define initialise_error_msg_info() \
7373
initialise_error_msg_info_(__func__, __FILE__, __LINE__)
7474

75-
void reset_error_msg_info();
76-
void free_error_msg_info();
75+
void reset_error_msg_info(void);
76+
void free_error_msg_info(void);
7777

7878
/* TODO: Implement */
7979
/*struct cn_error_messages {
@@ -84,7 +84,7 @@ void free_error_msg_info();
8484
void update_error_message_info_(
8585
const char *function_name, char *file_name, int line_number, char *cn_source_loc);
8686

87-
void cn_pop_msg_info();
87+
void cn_pop_msg_info(void);
8888

8989
#define update_cn_error_message_info(x) \
9090
update_error_message_info_(__func__, __FILE__, __LINE__ + 1, x)

runtime/libcn/include/cn-replicate/lines.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ extern "C" {
99
#include <stdio.h>
1010

1111
void cn_replica_lines_append(char *line);
12-
void cn_replica_lines_reset();
13-
char *cn_replica_lines_to_str();
14-
char *cn_replica_lines_to_json_literal();
12+
void cn_replica_lines_reset(void);
13+
char *cn_replica_lines_to_str(void);
14+
char *cn_replica_lines_to_json_literal(void);
1515

1616
struct tyche_line_info {
1717
char *test_suite;

runtime/libcn/src/bennet-exp/failure.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void bennet_failure_set_offset_bounds(void* p_alloc, void* p, size_t bytes) {
163163
failure.body.allocation.is_null = false;
164164
}
165165

166-
void bennet_failure_set_should_be_null() {
166+
void bennet_failure_set_should_be_null(void) {
167167
failure.type = BENNET_BACKTRACK_ALLOC;
168168
failure.body.allocation.lower_offset_bound = 0;
169169
failure.body.allocation.upper_offset_bound = 0;

runtime/libcn/src/bennet-exp/rand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ uint64_t bennet_rand(void) {
359359
}
360360
}
361361

362-
uint64_t bennet_rand_retry() {
362+
uint64_t bennet_rand_retry(void) {
363363
uint64_t choice = genrand();
364364

365365
struct choice_list* next = (choice_history != 0) ? choice_history->next : 0;

runtime/libcn/src/bennet-exp/size.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ void bennet_set_max_size(size_t sz) {
2323
static uint16_t stack_depth = 0;
2424
static uint16_t max_stack_depth = UINT8_MAX;
2525

26-
uint16_t bennet_depth() {
26+
uint16_t bennet_depth(void) {
2727
return stack_depth;
2828
}
2929

30-
uint16_t bennet_max_depth() {
30+
uint16_t bennet_max_depth(void) {
3131
return max_stack_depth;
3232
}
3333

3434
void bennet_set_max_depth(uint16_t msd) {
3535
max_stack_depth = msd;
3636
}
3737

38-
void bennet_increment_depth() {
38+
void bennet_increment_depth(void) {
3939
stack_depth++;
4040
}
4141

42-
void bennet_decrement_depth() {
42+
void bennet_decrement_depth(void) {
4343
stack_depth--;
4444
}
4545

@@ -49,7 +49,7 @@ void bennet_set_size_split_backtracks_allowed(uint16_t allowed) {
4949
size_split_backtracks_allowed = allowed;
5050
}
5151

52-
uint16_t bennet_get_size_split_backtracks_allowed() {
52+
uint16_t bennet_get_size_split_backtracks_allowed(void) {
5353
return size_split_backtracks_allowed;
5454
}
5555

runtime/libcn/src/bennet/failure.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void bennet_failure_set_allocation_needed(size_t sz) {
156156
failure.body.allocation.allocate_more_than = sz;
157157
}
158158

159-
size_t bennet_failure_get_allocation_needed() {
159+
size_t bennet_failure_get_allocation_needed(void) {
160160
assert(failure.type == BENNET_BACKTRACK_ALLOC);
161161
return failure.body.allocation.allocate_more_than;
162162
}

0 commit comments

Comments
 (0)