gdbusauth.c:1302:11: error: ‘%s’ directive argument is null

简介: gdbusauth.c:1302:11: error: ‘%s’ directive argument is null
gdbusauth.c: In function ‘_g_dbus_auth_run_server’:
gdbusauth.c:1302:11: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
 1302 |           debug_print ("SERVER: WaitingForBegin, read '%s'", line);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[6]: *** [Makefile:3633:libgio_2_0_la-gdbusauth.lo] 错误 1
make[6]: *** 正在等待未完成的任务....
gdbusmessage.c: In function ‘parse_value_from_blob’:
gdbusmessage.c:1712:29: warning: variable ‘item’ set but not used [-Wunused-but-set-variable]
 1712 |                   GVariant *item;
      |                             ^~~~
gdbusmessage.c: In function ‘append_value_to_blob’:
gdbusmessage.c:2326:24: warning: unused variable ‘end’ [-Wunused-variable]
 2326 |           const gchar *end;
      |                        ^~~
gdbusmessage.c: In function ‘g_dbus_message_to_blob’:
gdbusmessage.c:2702:30: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
 2702 |       tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[6]: *** [Makefile:3682:libgio_2_0_la-gdbusmessage.lo] 错误 1
make[5]: *** [Makefile:4471:all-recursive] 错误 1

解决方案

1、找到这个文件使用vim打开

2、找到报错的位置,加入如下代码:

if(line != NULL)

if(signature_str!= NULL)

即可完美解决。

目录
相关文章
|
1月前
|
Ubuntu Linux Windows
wsl重装Ubuntu遇到的一些问题( WslRegisterDistribution failed with error: 0x80041002 Error: 0x80041002 (null)、重置网络后WLAN图标消失)
wsl重装Ubuntu遇到的一些问题( WslRegisterDistribution failed with error: 0x80041002 Error: 0x80041002 (null)、重置网络后WLAN图标消失)
|
6月前
|
Java
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
141 1
|
druid 数据库连接
Druid出现DruidDataSource - recyle error - recyle error java.lang.InterruptedException: null异常排查与解决...
Druid出现DruidDataSource - recyle error - recyle error java.lang.InterruptedException: null异常排查与解决...
469 0
|
XML Java 数据库连接
MyBatis参数映射问题解决教程: org.apache.ibatis.type.TypeException: Error setting non null for parameter #1 wit
MyBatis参数映射问题解决教程: org.apache.ibatis.type.TypeException: Error setting non null for parameter #1 wit
923 1
|
SQL 关系型数据库 数据库
DB2 SQL Error: SQLCODE=-302, SQLSTATE=22001, SQLERRMC=null
DB2 SQL Error: SQLCODE=-302, SQLSTATE=22001, SQLERRMC=null
360 0
|
Oracle Java 关系型数据库
Error setting null for parameter #6 with JdbcType OTHER . Try setting a different JdbcType for this
Error setting null for parameter #6 with JdbcType OTHER . Try setting a different JdbcType for this
565 0
error • The parameter ‘name‘ can‘t have a value of ‘null‘ because of its type错误
error • The parameter ‘name‘ can‘t have a value of ‘null‘ because of its type错误
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
|
资源调度 Android开发
Uncaught Error: null is not an object(evaluating 'RNFreshchatSdk.FilterType')
Uncaught Error: null is not an object(evaluating 'RNFreshchatSdk.FilterType')
369 0
|
消息中间件 Kafka
Error when sending message to topic wyh-elk-kafka-topic with key: null
Error when sending message to topic wyh-elk-kafka-topic with key: null