Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jan 2015 01:23:39 +0000
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        FreeBSD Current <freebsd-current@FreeBSD.org>
Subject:   asr(4) error with new clang/llvm
Message-ID:  <CEA82F51-9D88-4F20-A649-78AE7E5309AA@lists.zabbadoz.net>

next in thread | raw e-mail | index | archive | help
Hi,

you need the next line of source to see that while the union only =
defines Simple[1], the comparison goes up to SG_LIST (or something) =
which is indeed defined as 58.   Cn someone fix this?   This makes i386 =
compiles failing currently.

/scratch/tmp/bz/head.svn/sys/modules/asr/../../dev/asr/asr.c:1849:29: =
error: array index 58 is past the end of the array (which contains 1 =
element) [-Werror,-Warray-bounds]
        while ((len > 0) && (sg < &((PPRIVATE_SCSI_SCB_EXECUTE_MESSAGE)
                                   ^
/scratch/tmp/bz/head.svn/sys/dev/asr/i2omsg.h:934:8: note: array =
'Simple' declared here
       I2O_SGE_SIMPLE_ELEMENT              Simple[1];
       ^


=E2=80=94=20
Bjoern A. Zeeb                                  Charles Haddon Spurgeon:
"Friendship is one of the sweetest joys of life.  Many might have failed
 beneath the bitterness of their trial  had they not found a friend."




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CEA82F51-9D88-4F20-A649-78AE7E5309AA>