Unused variable error

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable
Im having [-Werror=unused-variable] error and i want complier to ignore it. How can I change error settings ? (WICED 2.3.0)

Thanks,

Erol
0 Likes
1 Reply
Anonymous
Not applicable
We have set the compiler to be pedantic to minimise the possibility of shooting yourself in the foot.

To stop the complier complaining about unused variables, add the following macro around the unused variable:

UNUSED_VARIABLE(my_variable);
0 Likes