Skip to content

Commit 396e825

Browse files
authored
Merge branch 'master' into rnn-weight-quantize
2 parents 2c1a394 + e31be49 commit 396e825

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/c_api.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
extern "C" {
2727
#endif
2828

29-
NCNN_EXPORT const char* ncnn_version();
29+
NCNN_EXPORT const char* ncnn_version(void);
3030

3131
/* allocator api */
3232
typedef struct __ncnn_allocator_t* ncnn_allocator_t;
@@ -38,14 +38,14 @@ struct NCNN_EXPORT __ncnn_allocator_t
3838
void (*fast_free)(ncnn_allocator_t allocator, void* ptr);
3939
};
4040

41-
NCNN_EXPORT ncnn_allocator_t ncnn_allocator_create_pool_allocator();
42-
NCNN_EXPORT ncnn_allocator_t ncnn_allocator_create_unlocked_pool_allocator();
41+
NCNN_EXPORT ncnn_allocator_t ncnn_allocator_create_pool_allocator(void);
42+
NCNN_EXPORT ncnn_allocator_t ncnn_allocator_create_unlocked_pool_allocator(void);
4343
NCNN_EXPORT void ncnn_allocator_destroy(ncnn_allocator_t allocator);
4444

4545
/* option api */
4646
typedef struct __ncnn_option_t* ncnn_option_t;
4747

48-
NCNN_EXPORT ncnn_option_t ncnn_option_create();
48+
NCNN_EXPORT ncnn_option_t ncnn_option_create(void);
4949
NCNN_EXPORT void ncnn_option_destroy(ncnn_option_t opt);
5050

5151
NCNN_EXPORT int ncnn_option_get_num_threads(const ncnn_option_t opt);
@@ -63,7 +63,7 @@ NCNN_EXPORT void ncnn_option_set_use_vulkan_compute(ncnn_option_t opt, int use_v
6363
/* mat api */
6464
typedef struct __ncnn_mat_t* ncnn_mat_t;
6565

66-
NCNN_EXPORT ncnn_mat_t ncnn_mat_create();
66+
NCNN_EXPORT ncnn_mat_t ncnn_mat_create(void);
6767
NCNN_EXPORT ncnn_mat_t ncnn_mat_create_1d(int w, ncnn_allocator_t allocator);
6868
NCNN_EXPORT ncnn_mat_t ncnn_mat_create_2d(int w, int h, ncnn_allocator_t allocator);
6969
NCNN_EXPORT ncnn_mat_t ncnn_mat_create_3d(int w, int h, int c, ncnn_allocator_t allocator);
@@ -140,7 +140,7 @@ NCNN_EXPORT void ncnn_blob_get_shape(const ncnn_blob_t blob, int* dims, int* w,
140140
/* paramdict api */
141141
typedef struct __ncnn_paramdict_t* ncnn_paramdict_t;
142142

143-
NCNN_EXPORT ncnn_paramdict_t ncnn_paramdict_create();
143+
NCNN_EXPORT ncnn_paramdict_t ncnn_paramdict_create(void);
144144
NCNN_EXPORT void ncnn_paramdict_destroy(ncnn_paramdict_t pd);
145145

146146
NCNN_EXPORT int ncnn_paramdict_get_type(const ncnn_paramdict_t pd, int id);
@@ -165,7 +165,7 @@ struct NCNN_EXPORT __ncnn_datareader_t
165165
size_t (*read)(ncnn_datareader_t dr, void* buf, size_t size);
166166
};
167167

168-
NCNN_EXPORT ncnn_datareader_t ncnn_datareader_create();
168+
NCNN_EXPORT ncnn_datareader_t ncnn_datareader_create(void);
169169
#if NCNN_STDIO
170170
NCNN_EXPORT ncnn_datareader_t ncnn_datareader_create_from_stdio(FILE* fp);
171171
#endif /* NCNN_STDIO */
@@ -206,7 +206,7 @@ struct NCNN_EXPORT __ncnn_layer_t
206206
int (*forward_inplace_n)(const ncnn_layer_t layer, ncnn_mat_t* bottom_top_blobs, int n, const ncnn_option_t opt);
207207
};
208208

209-
NCNN_EXPORT ncnn_layer_t ncnn_layer_create();
209+
NCNN_EXPORT ncnn_layer_t ncnn_layer_create(void);
210210
NCNN_EXPORT ncnn_layer_t ncnn_layer_create_by_typeindex(int typeindex);
211211
#if NCNN_STRING
212212
NCNN_EXPORT ncnn_layer_t ncnn_layer_create_by_type(const char* type);
@@ -269,7 +269,7 @@ struct __ncnn_net_t
269269
ncnn_net_custom_layer_factory_t custom_layer_factory;
270270
};
271271

272-
NCNN_EXPORT ncnn_net_t ncnn_net_create();
272+
NCNN_EXPORT ncnn_net_t ncnn_net_create(void);
273273
NCNN_EXPORT void ncnn_net_destroy(ncnn_net_t net);
274274

275275
NCNN_EXPORT ncnn_option_t ncnn_net_get_option(ncnn_net_t net);

0 commit comments

Comments
 (0)