yoctobitbake

How to disable Warning error flag in yocto recipe


How to disable the warnings which considered as error in yocto BITBAKE recipe.

error: '<variable>' is used uninitialized in this function [-Werror=uninitialized]

Solution

  • You can add more compilation flags as below on your recipes.

    TARGET_CFLAGS += -Wuninitialized
    TARGET_CFLAGS += -Wmaybe-uninitialized