如何禁用 yocto BITBAKE 配方中被视为错误的警告。
error: '<variable>' is used uninitialized in this function [-Werror=uninitialized]
您可以在您的食谱中添加更多编译标志,如下所示。
TARGET_CFLAGS += -Wuninitialized
TARGET_CFLAGS += -Wmaybe-uninitialized
我的首选方法是清理包然后重建它。例如,如果 u-boot 具有受污染的标志:
$ bitbake -c cleanall u-boot
$ bitbake u-boot