【全志异核多构 AI智能视觉V853开发板测评】error:‘%s’directive argument is null
[复制链接]
buildroot编译过程出现该错误:
gdbusauth.c:1302:11: error: ‘%s’ directive argument is null
gdbusmessage.c:2702:30: error: ‘%s’ directive argument is null
解决办法:在出错位置代码前面加入if判断指针非空
gdbusauth.c文件1302行
debug_print ("SERVER: WaitingForBegin, read '%s'", line);
if (line == NULL)
goto out;
改为
if(line != NULL)
debug_print ("SERVER: WaitingForBegin, read '%s'", line);
if (line == NULL)
goto out;
gdbusmessage.c文件2702行
tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
改为
if(signature_str!= NULL)
tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
|