Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Rod Pemberton" Newsgroups: comp.lang.forth Subject: Re: rhel 7 and kforth Date: Mon, 27 Apr 2015 18:09:34 -0400 Organization: Aioe.org NNTP Server Lines: 26 Message-ID: References: <2015Apr20.140504@mips.complang.tuwien.ac.at> <87sibtx8ob.fsf@jester.gateway.sonic.net> <2015Apr22.130001@mips.complang.tuwien.ac.at> <878udhmle2.fsf@jester.gateway.sonic.net> <2015Apr25.184119@mips.complang.tuwien.ac.at> <2015Apr26.165622@mips.complang.tuwien.ac.at> <6f87de3d-bf50-4d21-814b-e106b29cd299@googlegroups.com> <2015Apr27.110253@mips.complang.tuwien.ac.at> NNTP-Posting-Host: n4wpt9zq8xR26Ttf9mo2BA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.forth:38661 On Mon, 27 Apr 2015 05:02:53 -0400, Anton Ertl wrote: > extern void foo(int a[]); > > int main(int argc, char *argv[]) { > int i, a[16]; > int x=0; > do { > a[i++]=x; > x+=0x10000000; > } while (x!=0); > foo(a); > return 0; > } > Shouldn't GCC warn with -Wall that 'i' is used unitialized? Was there a typing error here? Rod Pemberton -- Cars kill more people than guns in the U.S. Yet, no one is trying to take away your car.