我应该添加任何标志以避免这种情况吗?
make all-recursive make[1]: Entering directory '/home/local/ZOHOCORP/vignesh-4691/Downloads/json-c-master' Making all in . make[2]: Entering directory '/home/local/ZOHOCORP/vignesh-4691/Downloads/json-c-master' CC linkhash.lo linkhash.c: In function 'lh_char_hash': linkhash.c:480:2: error: #warning "racy random seed initializtion if used by multiple threads" [-Werror=cpp] #warning "racy random seed initializtion if used by multiple threads" ^ cc1: all warnings being treated as errors Makefile:585: recipe for target 'linkhash.lo' failed make[2]: *** [linkhash.lo] Error 1 make[2]: Leaving directory '/home/local/ZOHOCORP/vignesh-4691/Downloads/json-c-master' Makefile:649: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/local/ZOHOCORP/vignesh-4691/Downloads/json-c-master' Makefile:448: recipe for target 'all' failed make: *** [all] Error 2
答案 0 :(得分:1)
cc1: all warnings being treated as errors
当然,找到-Werror
设置的位置并删除该标志。然后警告只是警告。