您当前的位置: 首页 >  ar

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

cc1: all warnings being treated as errors

柳鲲鹏 发布时间:2020-06-06 09:16:13 ,浏览量:0

类似错误:

making install mod_av
make[4]: 进入目录“/home/quantum6/freeswitch/freeswitch-1.10.3/src/mod/applications/mod_av”
  CC       libavmod_la-mod_av.lo
In file included from /home/quantum6/build_libs/include/libavcodec/avcodec.h:46,
                 from mod_av.c:35:
/home/quantum6/build_libs/include/libavutil/mem.h:174:1: error: ‘alloc_size’ attribute ignored on a function returning ‘int’ [-Werror=attributes]
  174 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [Makefile:985:libavmod_la-mod_av.lo] 错误 1

解决办法:

/configure \
     CFLAGS="-Wno-error"

# CXXFLAGS="-Wno-error" 

 

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.1009s