Re: [PATCH 01/18] Add a function to solve least-cost assignment problems

2018-05-21 Thread Johannes Schindelin
Hi Duy,

On Sun, 13 May 2018, Duy Nguyen wrote:

> On Thu, May 3, 2018 at 5:30 PM, Johannes Schindelin
>  wrote:
> > +   /* reduction transfer */
> > +   free_row = xmalloc(sizeof(int) * row_count);
> > +   for (int i = 0; i < row_count; i++) {
> 
> travis complains about this
> 
> 
> hungarian.c: In function ‘compute_assignment’:
> hungarian.c:47:11: error: redeclaration of ‘i’ with no linkage
>   for (int i = 0; i < row_count; i++) {
>^
> hungarian.c:21:6: note: previous declaration of ‘i’ was here
>   int i, j, phase;
>   ^
> hungarian.c:47:2: error: ‘for’ loop initial declarations are only
> allowed in C99 mode
>   for (int i = 0; i < row_count; i++) {
>   ^
> hungarian.c:47:2: note: use option -std=c99 or -std=gnu99 to compile your code

Yep, I fixed it locally already before seeing your mail. It is good to
know that some people pay attention, though!

Ciao,
Dscho

Re: [PATCH 01/18] Add a function to solve least-cost assignment problems

2018-05-13 Thread Duy Nguyen
On Thu, May 3, 2018 at 5:30 PM, Johannes Schindelin
 wrote:
> +   /* reduction transfer */
> +   free_row = xmalloc(sizeof(int) * row_count);
> +   for (int i = 0; i < row_count; i++) {

travis complains about this


hungarian.c: In function ‘compute_assignment’:
hungarian.c:47:11: error: redeclaration of ‘i’ with no linkage
  for (int i = 0; i < row_count; i++) {
   ^
hungarian.c:21:6: note: previous declaration of ‘i’ was here
  int i, j, phase;
  ^
hungarian.c:47:2: error: ‘for’ loop initial declarations are only
allowed in C99 mode
  for (int i = 0; i < row_count; i++) {
  ^
hungarian.c:47:2: note: use option -std=c99 or -std=gnu99 to compile your code
-- 
Duy