error: statement with no effect [-Werror=unused-value]

简介: error: statement with no effect [-Werror=unused-value]

完整错误如下:


make[1]: 进入目录“/home/quantum6/freeswitch/freeswitch-1.10.3”
  CC       src/libfreeswitch_la-switch_core_cert.lo
In file included from ./src/include/switch_ssl.h:39:0,
                 from src/switch_core_cert.c:33:
src/switch_core_cert.c: In function ‘switch_ssl_init_ssl_locks’:
/home/quantum6/build_libs/include/openssl/crypto.h:235:57: error: statement with no effect [-Werror=unused-value]
 #  define CRYPTO_THREADID_set_callback(threadid_func)   (0)
                                                         ^
src/switch_core_cert.c:72:3: note: in expansion of macro ‘CRYPTO_THREADID_set_callback’
   CRYPTO_THREADID_set_callback(switch_ssl_ssl_thread_id);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:2269: recipe for target 'src/libfreeswitch_la-switch_core_cert.lo' failed
make[1]: *** [src/libfreeswitch_la-switch_core_cert.lo] Error 1

 解决办法,增加 -Wno-error=unused-value:

./configure \
    --prefix=${BUILD_LIBS} \
    --disable-core-libedit-support \
     CFLAGS="-I${BUILD_LIBS}/include -Wno-error=unused-value" \
    LDFLAGS=-L${BUILD_LIBS}/lib
# 这个参数无效。
#    --disable-werror
目录
相关文章
|
6月前
Which two statements are true about Database Vault factors?
Which two statements are true about Database Vault factors?
59 1
|
3月前
|
XML Java Maven
Invalid bound statement (not found)
Invalid bound statement (not found)
31 0
|
5月前
Invalid bound statement (not found)错误【已解决】
Invalid bound statement (not found)错误【已解决】
105 1
|
5月前
|
Java
【ERROR】‘<>‘ operator is not allowed for source level below 1.7
【ERROR】‘<>‘ operator is not allowed for source level below 1.7
51 0
|
编译器
解决Invalid bound statement (not found)错误~
解决Invalid bound statement (not found)错误~
|
SQL Java 数据库连接
Invalid bound statement (not found) 问题处理
您好,我是码农飞哥,感谢您阅读本文!本文将介绍使用MyBatis时出现的一些常见问题。
259 0
|
C语言
error: implicit declaration of function ‘VerifyFixClassname‘ is invalid in C99 [-Werror,-Wimplicit-f
error: implicit declaration of function ‘VerifyFixClassname‘ is invalid in C99 [-Werror,-Wimplicit-f
148 0
解决办法:defined but not used [-Werror=unused-variable]
解决办法:defined but not used [-Werror=unused-variable]
783 0
|
Linux
WARNING: Re-reading the partition table failed with error 22: Invalid argument
在划分磁盘分区时,遇到错误“WARNING: Re-reading the partition table failed with error 22: Invalid argument” 如下所示: [root@DB-Server u02]# fdisk -l   Disk /dev/sda: 500.
2541 0
|
XML SQL 数据格式
Invalid bound statement (not found)错误的可能原因
Invalid bound statement (not found)错误的可能原因
786 0