You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to compile with GCC 11, I get the following error:
../../../crazyflies/crazyflie-firmware/src/deck/core/deck_test.c: In function 'decktestSaveGPIOStatesABC':
../../../crazyflies/crazyflie-firmware/src/deck/core/deck_test.c:61:3: error: 'memcpy' offset [0, 39] is out of the bounds [0, 0] [-Werror=array-bounds]
61 | memcpy(&gpioRegBuf->gpioBuffA, GPIOA, sizeof(GPIO_TypeDef));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../crazyflies/crazyflie-firmware/src/deck/core/deck_test.c:62:3: error: 'memcpy' offset [0, 39] is out of the bounds [0, 0] [-Werror=array-bounds]
62 | memcpy(&gpioRegBuf->gpioBuffB, GPIOB, sizeof(GPIO_TypeDef));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../crazyflies/crazyflie-firmware/src/deck/core/deck_test.c:63:3: error: 'memcpy' offset [0, 39] is out of the bounds [0, 0] [-Werror=array-bounds]
63 | memcpy(&gpioRegBuf->gpioBuffC, GPIOC, sizeof(GPIO_TypeDef));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../crazyflies/crazyflie-firmware/src/deck/core/deck_test.c: In function 'decktestRestoreGPIOStatesABC':
../../../crazyflies/crazyflie-firmware/src/deck/core/deck_test.c:69:3: error: 'memcpy' offset [0, 39] is out of the bounds [0, 0] [-Werror=array-bounds]
69 | memcpy(GPIOA, &gpioRegBuf->gpioBuffA, sizeof(GPIO_TypeDef));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../crazyflies/crazyflie-firmware/src/deck/core/deck_test.c:70:3: error: 'memcpy' offset [0, 39] is out of the bounds [0, 0] [-Werror=array-bounds]
70 | memcpy(GPIOB, &gpioRegBuf->gpioBuffB, sizeof(GPIO_TypeDef));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../crazyflies/crazyflie-firmware/src/deck/core/deck_test.c:71:3: error: 'memcpy' offset [0, 39] is out of the bounds [0, 0] [-Werror=array-bounds]
71 | memcpy(GPIOC, &gpioRegBuf->gpioBuffC, sizeof(GPIO_TypeDef));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [../../../crazyflies/crazyflie-firmware/tools/make/targets.mk:27: deck_test.o] Error 1
make: *** [../../../crazyflies/crazyflie-firmware/Makefile:400: build] Error 2
The text was updated successfully, but these errors were encountered:
They suggest that for now, the best solution is to make a compiler skip this check. They suggest two ways to do so. I'll make a PR that disables this warning in Makefile.
When trying to compile with GCC 11, I get the following error:
The text was updated successfully, but these errors were encountered: