错误一:
cc -Wall -Werror -O2 /home/silinx/lichee/buildroot/output/build/host-makedevs/makedevs.c -o /home/silinx/lichee/buildroot/output/build/host-makedevs/makedevs
/home/silinx/lichee/buildroot/output/build/host-makedevs/makedevs.c: In function ‘main’:
/home/silinx/lichee/buildroot/output/build/host-makedevs/makedevs.c:374:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]
int ret = EXIT_SUCCESS;
^
cc1: all warnings being treated as errors
make: *** [/home/silinx/lichee/buildroot/output/build/host-makedevs/makedevs] Error 1
解决办法:
直接修改makedevs.c文件:
最后一行,return 0;
修改为:return ret;
源代码位置:./buildroot/package/makedevs/makedevs.c