Hi,
I’m new to ardupilot and I’m sorry if I’m posting in the wrong category. I’m currently trying to build a minimal firmware board for the STM32f103 in AP_Periph. I’ve configured my new board and now I’m trying to run ./waf AP_Periph however I’m running into an error which says the following:
../../libraries/AP_HAL_ChibiOS/GPIO.cpp: In function 'void __static_initialization_and_destruction_0(int, int)':
../../libraries/AP_HAL_ChibiOS/GPIO.cpp:54:3: error: statement has no effect [-Werror=unused-value]
54 | } _gpio_tab[] = HAL_GPIO_PINS;
| ^~~~~~~~~
compilation terminated due to -Wfatal-errors.
cc1plus: some warnings being treated as errors
I’ve looked through GPIO.cpp and some other files but I can’t figure out why this error is occuring or how to fix it. Any help fixing this problem would be much appreciated, thank you.