avr-gcc-list
[Top][All Lists]
Advanced

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

Re: avr-gcc-12.1.0-x64-windows new warnings ?


From: Georg-Johann Lay
Subject: Re: avr-gcc-12.1.0-x64-windows new warnings ?
Date: Mon, 24 Apr 2023 12:30:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0



Am 23.04.23 um 22:57 schrieb Royce Pereira:
Hi,

I just tried avr-gcc 12.1.0 on an old project, and got some new warning I can't explain.

The code is:

PORTC &= 0xFE ;  //clear bit 0.

and the warning is:
warning: array subscript 0 is outside array bounds of 'volatile uint8_t[0]' {aka 'volatile unsigned char[]'} [-Warray-bounds]

What is this warning and what array is it referring to?

Thank you!

--
Best Regards,

-- Royce Pereira

Hi, appears to be problem report PR105523

https://gcc.gnu.org/PR105523



reply via email to

[Prev in Thread] Current Thread [Next in Thread]