cc1: all warnings being treated as errors

简介: cc1: all warnings being treated as errors

类似错误:

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" 
目录
相关文章
|
5月前
You may use special comments to disable some warnings. Use // eslint-disable-next-line……
You may use special comments to disable some warnings. Use // eslint-disable-next-line……
|
5月前
|
JavaScript
Uncaught runtime errors: × ERROR Avoided redundant navigation to current location: “/xxx“.
Uncaught runtime errors: × ERROR Avoided redundant navigation to current location: “/xxx“.
62 0
|
8月前
使用errors.Wrapf()代替log.Error()
使用errors.Wrapf()代替log.Error()
35 0
cc1: all warnings being treated as errors
cc1: all warnings being treated as errors
163 0
error: possibly undefined macro: AC_PROG_LIBTOOL
error: possibly undefined macro: AC_PROG_LIBTOOL
215 0
|
存储 机器学习/深度学习 安全
#pragma warning(disable:4996)是啥?
#pragma warning(disable:4996)是啥?
571 0
#pragma warning(disable:4996)是啥?
|
人工智能 大数据
Transaction Check Error:file /usr/libexec/getconf/default conflicts between attempted installs of gcc-6.4.1-1.fc25.i686 and gcc-6.4.1-1.fc25.x86_64
欢迎关注大数据和人工智能技术文章发布的微信公众号:清研学堂,在这里你可以学到夜白(作者笔名)精心整理的笔记,让我们每天进步一点点,让优秀成为一种习惯! 今天在我的ubuntu系统上使用yum来安装软件时出错了错误:Transaction Check Error:file /usr/libexec/...
1418 0
|
关系型数据库 测试技术 Oracle
[20180102]statistics_level=BASIC.txt
[20180102]statistics_level=BASIC.txt --//一个测试环境不知道谁设置statistics_level=BASIC,导致重启出现错误,自己在测试环境模拟看看: SYS@book> create pfile='/tmp/@.
1198 0