Re: Please review wip/nostromo
Adrian Steinmann <[email protected]> Tue, 20 Sep 2011 10:11:06 +0200
| Newsgroups | gmane.os.netbsd.devel.pkgsrc.wip.review |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Sep 13, 2011 at 12:37:01PM +0200, Thomas Klausner wrote: > One issue that's left: It doesn't compile with the default compiler in > NetBSD-current, gcc-4.5.3: > > --- main.o --- > cc1: warnings being treated as errors > main.c: In function 'main': > main.c:1328:6: error: array subscript is above array bounds > main.c:1328:6: error: array subscript is above array bounds This appears to be a bug in -O2 optimization. It happens in FD_SET() which is a macro setting an array element. Also see elsewhere http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43949 > Can you please take a look? CFLAGS+= -O "fixes" it, shall I commit that? Adrian ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1