Problem with building Px4

Hi everyone! I downloaded from git source of px4 autopilot as was described here: https://dev.px4.io/master/en/setup/building_px4.html

After that I want to build it with my board configuration (pixhawk1), before I installed a toolchain for it:
https://dev.px4.io/master/en/setup/dev_env_linux_ubuntu.html
Toolchain I get with ubuntu.sh

I run " make px4_fmu-v2_default "

And when I build it with make, I had This:

…/…/platforms/common/include/px4_platform_common/atomic.h:169:34: error: parameter ‘expected’ set but not used [-Werror=unused-but-set-parameter]
inline bool compare_exchange(T *expected, T desired)
^~~~~~~~
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
[473/735] Building CXX object src/modu…_commander.dir/mag_calibration.cpp.obj
ninja: build stopped: subcommand failed.

What I have to change in make or in cmake, for avoiding it?