@@ -83,7 +83,7 @@ static int fuzz_builtin_unicode(const char* data, size_t size) {
83
83
PyObject * struct_unpack_method = NULL ;
84
84
PyObject * struct_error = NULL ;
85
85
/* Called by LLVMFuzzerTestOneInput for initialization */
86
- static int init_struct_unpack () {
86
+ static int init_struct_unpack (void ) {
87
87
/* Import struct.unpack */
88
88
PyObject * struct_module = PyImport_ImportModule ("struct" );
89
89
if (struct_module == NULL ) {
@@ -146,7 +146,7 @@ static int fuzz_struct_unpack(const char* data, size_t size) {
146
146
147
147
PyObject * json_loads_method = NULL ;
148
148
/* Called by LLVMFuzzerTestOneInput for initialization */
149
- static int init_json_loads () {
149
+ static int init_json_loads (void ) {
150
150
/* Import json.loads */
151
151
PyObject * json_module = PyImport_ImportModule ("json" );
152
152
if (json_module == NULL ) {
@@ -192,7 +192,7 @@ PyObject* sre_compile_method = NULL;
192
192
PyObject * sre_error_exception = NULL ;
193
193
int SRE_FLAG_DEBUG = 0 ;
194
194
/* Called by LLVMFuzzerTestOneInput for initialization */
195
- static int init_sre_compile () {
195
+ static int init_sre_compile (void ) {
196
196
/* Import sre_compile.compile and sre.error */
197
197
PyObject * sre_compile_module = PyImport_ImportModule ("sre_compile" );
198
198
if (sre_compile_module == NULL ) {
@@ -284,7 +284,7 @@ static const char* regex_patterns[] = {
284
284
const size_t NUM_PATTERNS = sizeof (regex_patterns ) / sizeof (regex_patterns [0 ]);
285
285
PyObject * * compiled_patterns = NULL ;
286
286
/* Called by LLVMFuzzerTestOneInput for initialization */
287
- static int init_sre_match () {
287
+ static int init_sre_match (void ) {
288
288
PyObject * re_module = PyImport_ImportModule ("re" );
289
289
if (re_module == NULL ) {
290
290
return 0 ;
@@ -339,7 +339,7 @@ static int fuzz_sre_match(const char* data, size_t size) {
339
339
PyObject * csv_module = NULL ;
340
340
PyObject * csv_error = NULL ;
341
341
/* Called by LLVMFuzzerTestOneInput for initialization */
342
- static int init_csv_reader () {
342
+ static int init_csv_reader (void ) {
343
343
/* Import csv and csv.Error */
344
344
csv_module = PyImport_ImportModule ("csv" );
345
345
if (csv_module == NULL ) {
0 commit comments