0

I am getting following error in yocto :

error: unused variable 'array' [-Werror=unused-variable]

But I want to suppress it. How can I do that in yocto recipe? What exactly I should write in recipe?

Nilesh
  • 11
  • 3
  • 1
    https://stackoverflow.com/questions/26003402/how-to-add-global-cxx-compiler-flag-to-yocto-build#:~:text=You%20can%20add%20it%20to,is%20defined%20in%20your%20local. – Nilesh May 13 '21 at 17:13
  • If you have an unused variable, why don't you just remove it? – dbush May 13 '21 at 18:03

1 Answers1

1

This was resolved by adding TARGET_CFLAGS += "-Wno-unused-variable" in recipe.

Nilesh
  • 11
  • 3