Warnings give compile errors

#1

Hi

Perhaps this is not the right place, but here goes.

I am currently writing an application for a state estimator, using the px4 SITL with gazebo. I build the project using “make posix_sitl_default gazebo”. When I do this, I get build errors whenever I have an unused or not set variable. This is quite annoying. Do you know how to make the compiler less strict on this?

Thanks in advance

Example:
error: unused variable ‘taux’ [-Werror=unused-variable] float taux = 0;

#2

Fixed it: If somebody else has this issue, you can outcomment -Werror in Firmware/cmake/px4_base.cmake

1 Like
#3

Thanks. Saved the day