I have not modified FcfsResourceQueueC.nc. This is the original version of
the file where resQ[] is defined
generic module FcfsResourceQueueC(uint8_t size) @safe()
{
provides
{
interface Init;
interface ResourceQueue as FcfsQueue;
}
}
implementation
{
enum {NO_ENTRY = 0xFF};
uint8_t resQ[size];
Thanks,
Lewis
On Mon, Jun 9, 2014 at 12:43 AM, Eric Decker <[email protected]> wrote:
> how is resQ[] defined?
>
>
> On Sun, Jun 8, 2014 at 7:05 PM, Roadstar Runner <[email protected]>
> wrote:
>
>> I recently upgraded to avr-gcc 4.9.0 and am getting a few warnings in
>> FcfsResourceQueueC.nc.
>> I am not sure why gcc is complaining.
>>
>> /opt/tinyos-2.x/tos/system/FcfsResourceQueueC.nc:88:73: warning: array
>> subscript is above array bounds [-Warray-bounds]
>> resQ[qTail] = id;
>>
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> Eric B. Decker
> Senior (over 50 :-) Researcher
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help