Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
cb4a6614
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cb4a6614
编写于
4月 28, 2009
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix check for -Wformat-security which depends on -Wformat
上级
9cae1d5e
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
19 addition
and
4 deletion
+19
-4
ChangeLog
ChangeLog
+7
-0
m4/compiler-flags.m4
m4/compiler-flags.m4
+9
-1
src/virsh.c
src/virsh.c
+3
-3
未找到文件。
ChangeLog
浏览文件 @
cb4a6614
Tue Apr 28 11:54:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
Fix check for -Wformat-security which depends on -Wformat
* m4/compiler-flags.m4: Set previously verified compiler flags
when checking new flags
* srv/virsh.c: Fix three non-critical format string bugs
Fri Apr 24 15:55:56 CEST 2009 Daniel Veillard <veillard@redhat.com>
* NEWS configure.in libvirt.spec.in docs/*: release of 0.6.3
...
...
m4/compiler-flags.m4
浏览文件 @
cb4a6614
...
...
@@ -24,7 +24,15 @@ AC_DEFUN([gl_COMPILER_FLAGS],
[AC_MSG_CHECKING(whether compiler accepts $1)
AC_SUBST(COMPILER_FLAGS)
ac_save_CFLAGS="$CFLAGS"
dnl Some flags are dependant, so we set all previously checked
dnl flags when testing. Except for -Werror which we have to
dnl check on its own, because some of our compiler flags cause
dnl warnings from the autoconf test program!
if test "$1" = "-Werror" ; then
CFLAGS="$CFLAGS $1"
else
CFLAGS="$CFLAGS $COMPILER_FLAGS $1"
fi
AC_TRY_LINK([], [], has_option=yes, has_option=no,)
echo 'int x;' >conftest.c
$CC $CFLAGS -c conftest.c 2>conftest.err
...
...
src/virsh.c
浏览文件 @
cb4a6614
...
...
@@ -4463,7 +4463,7 @@ cmdNodeListDevicesPrint(vshControl *ctl,
}
/* Print this device */
vshPrint
(
ctl
,
indentBuf
);
vshPrint
(
ctl
,
"%s"
,
indentBuf
);
vshPrint
(
ctl
,
"%s
\n
"
,
devices
[
devid
]);
...
...
@@ -4487,7 +4487,7 @@ cmdNodeListDevicesPrint(vshControl *ctl,
/* If there is a child device, then print another blank line */
if
(
nextlastdev
!=
-
1
)
{
vshPrint
(
ctl
,
indentBuf
);
vshPrint
(
ctl
,
"%s"
,
indentBuf
);
vshPrint
(
ctl
,
" |
\n
"
);
}
...
...
@@ -4511,7 +4511,7 @@ cmdNodeListDevicesPrint(vshControl *ctl,
/* If there was no child device, and we're the last in
* a list of devices, then print another blank line */
if
(
nextlastdev
==
-
1
&&
devid
==
lastdev
)
{
vshPrint
(
ctl
,
indentBuf
);
vshPrint
(
ctl
,
"%s"
,
indentBuf
);
vshPrint
(
ctl
,
"
\n
"
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录