What about, i = 0; do { SD = SDList[i++]; ... } while(i<2);
Adriano Verardo wrote: > Hi, all. > > SDes_t *SDList[2], *SD; > .... > n = ... // 0, 1, 2, ... > > //SD = SDList[0]; <= uncommenting this one the warning disappear. > > for (i = 0; i < 2; i++) > { > SD = SDList[i]; > while (n && SD) > { > SD = SD->next; > if (SD) n--; > } > } > > if (!SD) { ..... } ---> used and not set SD ??? > > 8c shouldn't issue the warning message, beeing SD assigned in a loop > defined by constants ... unless there is a subtle (my) error that I > don't see. > > Thanks for the help. > > adriano > > > >