On 8/1/07, Bastian Blank <[EMAIL PROTECTED]> wrote: > On Wed, Aug 01, 2007 at 04:16:13PM +0200, Javier Cabezas Rodríguez wrote: > > void do_pin_processes(int pids[], int n, char pin) > > { > > int i; > > for (i = 0; i < n; i++) { > > printf("%d\n", i); > > do_pin_process(pids[i], pin); > > } > > } > > > > When I compile the attached program with the following flags the > > compiler generates a infinite loop in the function do_pin_processes (the > > i variable is not incremented): > > Please provide a _minimal_ and compiling example which emits this > behaviour. And please use -Wall to compile the source, it contains > errors.
If I remove the warnings, the generated code is correct. Javi