@@ -173,7 +173,7 @@ def check_decl(self, symbol,
173
173
headers = None , include_dirs = None ):
174
174
self ._check_compiler ()
175
175
body = """
176
- int main()
176
+ int main(void )
177
177
{
178
178
#ifndef %s
179
179
(void) %s;
@@ -188,7 +188,7 @@ def check_macro_true(self, symbol,
188
188
headers = None , include_dirs = None ):
189
189
self ._check_compiler ()
190
190
body = """
191
- int main()
191
+ int main(void )
192
192
{
193
193
#if %s
194
194
#else
@@ -208,7 +208,7 @@ def check_type(self, type_name, headers=None, include_dirs=None,
208
208
209
209
# First check the type can be compiled
210
210
body = r"""
211
- int main() {
211
+ int main(void ) {
212
212
if ((%(name)s *) 0)
213
213
return 0;
214
214
if (sizeof (%(name)s))
@@ -236,7 +236,7 @@ def check_type_size(self, type_name, headers=None, include_dirs=None, library_di
236
236
# First check the type can be compiled
237
237
body = r"""
238
238
typedef %(type)s npy_check_sizeof_type;
239
- int main ()
239
+ int main (void )
240
240
{
241
241
static int test_array [1 - 2 * !(((long) (sizeof (npy_check_sizeof_type))) >= 0)];
242
242
test_array [0] = 0
@@ -252,7 +252,7 @@ def check_type_size(self, type_name, headers=None, include_dirs=None, library_di
252
252
if expected :
253
253
body = r"""
254
254
typedef %(type)s npy_check_sizeof_type;
255
- int main ()
255
+ int main (void )
256
256
{
257
257
static int test_array [1 - 2 * !(((long) (sizeof (npy_check_sizeof_type))) == %(size)s)];
258
258
test_array [0] = 0
@@ -273,7 +273,7 @@ def check_type_size(self, type_name, headers=None, include_dirs=None, library_di
273
273
# this fails to *compile* if size > sizeof(type)
274
274
body = r"""
275
275
typedef %(type)s npy_check_sizeof_type;
276
- int main ()
276
+ int main (void )
277
277
{
278
278
static int test_array [1 - 2 * !(((long) (sizeof (npy_check_sizeof_type))) <= %(size)s)];
279
279
test_array [0] = 0
0 commit comments