'How to disable Warning error flag in yocto recipe

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

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



Solution 1:[1]

My preferred way is to clean the package and then rebuild it. For example, if it's u-boot that has the tainted flag:

$ bitbake -c cleanall u-boot
$ bitbake u-boot

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 LinderPi