In a T4.1 application I use the RFM95 SPI LoRa modules
Archived code attached.
When compiling I get this warning thrown at me.
Started using 1.58.0-beta2 - never had this before I think.
Now what?
Archived code attached.
When compiling I get this warning thrown at me.
Code:
In member function 'void RHRouter::deleteRoute(uint8_t)',
inlined from 'void RHRouter::retireOldestRoute()' at C:\Users\HP\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2\libraries\RadioHead\RHRouter.cpp:148:16,
inlined from 'void RHRouter::addRouteTo(uint8_t, uint8_t, uint8_t)' at C:\Users\HP\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2\libraries\RadioHead\RHRouter.cpp:79:22:
C:\Users\HP\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2\libraries\RadioHead\RHRouter.cpp:106:11: warning: 'void* memcpy(void*, const void*, size_t)' accessing 27 bytes at offsets 280 and 283 overlaps 24 bytes at offset 283 [-Wrestrict]
106 | memcpy(&_routes[index], &_routes[index+1],
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
107 | sizeof(RoutingTableEntry) * (RH_ROUTING_TABLE_SIZE - index - 1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In member function 'void RHRouter::deleteRoute(uint8_t)',
inlined from 'void RHRouter::retireOldestRoute()' at C:\Users\HP\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2\libraries\RadioHead\RHRouter.cpp:148:16:
C:\Users\HP\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta2\libraries\RadioHead\RHRouter.cpp:106:11: warning: 'void* memcpy(void*, const void*, size_t)' accessing 27 bytes at offsets 280 and 283 overlaps 24 bytes at offset 283 [-Wrestrict]
106 | memcpy(&_routes[index], &_routes[index+1],
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
107 | sizeof(RoutingTableEntry) * (RH_ROUTING_TABLE_SIZE - index - 1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Memory Usage on Teensy 4.1:
FLASH: code:20728, data:6120, headers:8988 free for files:8090628
RAM1: variables:8256, code:18088, padding:14680 free for local variables:483264
RAM2: variables:16512 free for malloc/new:507776
Started using 1.58.0-beta2 - never had this before I think.
Now what?