Change compile setting ap_periph

Hello
I am new to ardupilot and I am compiling the firmware according to the instructions AP_Periph
I’m trying to build firmware for the f103-GPS board

runtime
Windows 11 wsl

I run commands
./waf configure --board f103-GPS
./waf ap_periph

and compilation stop with error

[445/631] Compiling libraries/AP_HAL_ChibiOS/system.cpp
../../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

Waf: Leaving directory `/home/tpychev/ardupilot/build/f103-ADSB'
Build failed
 -> task in 'objs/AP_HAL_ChibiOS/AP_Periph' failed (exit status 1):
        {task 139957833921952: cxx GPIO.cpp -> GPIO.cpp.8.o}
 (run with -v to display more information)

I looked at the code, there is no error

as I understood this is warning , but showed as error

how can i configure not to display warnings as errors

Does anyone have any ideas about this?
thanks for any help.