From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4A808A92.1000800@orcasystems.com> Date: Mon, 10 Aug 2009 14:01:06 -0700 From: James Tomaschke User-Agent: Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> References: <4A7F246E.8000504@tecmav.com> In-Reply-To: <4A7F246E.8000504@tecmav.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Unexpected 8c warning message Topicbox-Message-UUID: 4119721e-ead5-11e9-9d60-3106f5b1d025 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 > > > >