Mail Archives: djgpp-workers/1999/09/16/06:52:48
On Wed, 15 Sep 1999, Laurynas Biveinis wrote:
> The little patch below fixes this GCC warning.
>
> Laurynas Biveinis
> -----------------
> --- dosexec.c.old Thu Jun 3 19:27:36 1999
> +++ dosexec.c Wed Sep 15 19:36:28 1999
> @@ -813,7 +813,8 @@
> char line[130], interp[FILENAME_MAX], iargs[130];
> FILE *f;
> char **newargs;
> - int i, hasargs=0;
> + int hasargs=0;
> + unsigned i;
Did GCC 2.95 compile that without any warning? I'd expect it to say
something, since the code does this (much later):
i = (*spawnfunc)(P_WAIT, pinterp, newargs, envp);
return i;
Not only can *spawnfunc return a negative value, but the function
itself is declared as returning an int, not an unsigned int.
So I think this should be fixed differently. In any case, the library
is not guaranteed to be compatible with GCC 2.95 yet; there are
probably more problems to sort out.
- Raw text -