9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Unexpected 8c warning message
@ 2009-08-09 19:33 Adriano Verardo
  2009-08-09 19:46 ` Russ Cox
  2009-08-10 21:01 ` James Tomaschke
  0 siblings, 2 replies; 13+ messages in thread
From: Adriano Verardo @ 2009-08-09 19:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-08-11 22:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-09 19:33 [9fans] Unexpected 8c warning message Adriano Verardo
2009-08-09 19:46 ` Russ Cox
2009-08-09 21:20   ` Adriano Verardo
2009-08-09 21:48     ` erik quanstrom
2009-08-10 16:24       ` Adriano Verardo
2009-08-10 16:43         ` erik quanstrom
2009-08-10 17:19           ` Russ Cox
2009-08-10 23:30             ` Adriano Verardo
2009-08-11  0:19               ` Charles Forsyth
2009-08-10 20:33           ` Adriano Verardo
2009-08-10 21:01 ` James Tomaschke
2009-08-11 10:30   ` Ethan Grammatikidis
2009-08-11 22:16     ` James Tomaschke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).