[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Incorrect declarations in src/examples/tsp/mincut.h and mincut.c
From: |
Heinrich Schuchardt |
Subject: |
Incorrect declarations in src/examples/tsp/mincut.h and mincut.c |
Date: |
Wed, 16 Dec 2020 17:42:22 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 |
Hello Andrew,
the tsp example results in warnings
mincut.c:52:38: warning: type defaults to ‘int’ in declaration of ‘cap’
[-Wimplicit-int]
52 | const int end[/*1+ne*/], const cap[/*1+ne*/], int
cut[/*1+nn*/])
| ^~~
mincut.c:225:38: warning: type defaults to ‘int’ in declaration of ‘cap’
[-Wimplicit-int]
225 | const int end[/*1+ne*/], const cap[/*1+ne*/], int
cut[/*1+nn*/])
|
In file included from main.c:83:
mincut.h:9:38: warning: type defaults to ‘int’ in declaration of ‘cap’
[-Wimplicit-int]
9 | const int end[/*1+ne*/], const cap[/*1+ne*/], int
cut[/*1+nn*/]);
| ^~~
mincut.h:18:38: warning: type defaults to ‘int’ in declaration of ‘cap’
[-Wimplicit-int]
18 | const int end[/*1+ne*/], const cap[/*1+ne*/], int
cut[/*1+nn*/]);
| ^~~
In file included from mincut.c:8:
mincut.h:9:38: warning: type defaults to ‘int’ in declaration of ‘cap’
[-Wimplicit-int]
9 | const int end[/*1+ne*/], const cap[/*1+ne*/], int
cut[/*1+nn*/]);
| ^~~
mincut.h:18:38: warning: type defaults to ‘int’ in declaration of ‘cap’
[-Wimplicit-int]
18 | const int end[/*1+ne*/], const cap[/*1+ne*/], int
cut[/*1+nn*/]);
| ^~~
mincut.c:52:38: warning: type defaults to ‘int’ in declaration of ‘cap’
[-Wimplicit-int]
52 | const int end[/*1+ne*/], const cap[/*1+ne*/], int
cut[/*1+nn*/])
| ^~~
mincut.c:225:38: warning: type defaults to ‘int’ in declaration of ‘cap’
[-Wimplicit-int]
225 | const int end[/*1+ne*/], const cap[/*1+ne*/], int
cut[/*1+nn*/])
Please, replace the files according to the appendix.
Best regards
Heinrich
mincut.c
Description: Text Data
mincut.h
Description: Text Data
- Incorrect declarations in src/examples/tsp/mincut.h and mincut.c,
Heinrich Schuchardt <=