Re: [PATCH] tools: Fix bccmd build with GCC 4.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Szymon,

On Wed, Apr 02, 2014, Szymon Janc wrote:
> Make sure accessing array[63 * 2 + 4] is legal.
> 
> tools/bccmd.c: In function ‘cmd_buildname’:
> tools/bccmd.c:406:18: error: iteration 63u invokes undefined behavior
>      [-Werror=aggressive-loop-optimizations]
>    name[i] = array[(i * 2) + 4];
> ---
>  tools/bccmd.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied. Thanks.

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux