Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
45ad3d69
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看板
提交
45ad3d69
编写于
9月 26, 2011
作者:
M
Michal Privoznik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug: Annotate some variables as unused
as they are not used with debugging turned off.
上级
05e2fc51
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
41 addition
and
30 deletion
+41
-30
daemon/stream.c
daemon/stream.c
+2
-2
src/locking/lock_driver_nop.c
src/locking/lock_driver_nop.c
+3
-3
src/lxc/lxc_container.c
src/lxc/lxc_container.c
+1
-1
src/lxc/lxc_driver.c
src/lxc/lxc_driver.c
+1
-1
src/node_device/node_device_udev.c
src/node_device/node_device_udev.c
+1
-1
src/qemu/qemu_migration.c
src/qemu/qemu_migration.c
+1
-1
src/rpc/virnettlscontext.c
src/rpc/virnettlscontext.c
+3
-2
src/util/command.c
src/util/command.c
+6
-3
src/util/virpidfile.c
src/util/virpidfile.c
+1
-1
src/vbox/vbox_tmpl.c
src/vbox/vbox_tmpl.c
+22
-15
未找到文件。
daemon/stream.c
浏览文件 @
45ad3d69
...
...
@@ -94,7 +94,7 @@ daemonStreamUpdateEvents(daemonClientStream *stream)
* fast stream, but slow client
*/
static
void
daemonStreamMessageFinished
(
virNetMessagePtr
msg
,
daemonStreamMessageFinished
(
virNetMessagePtr
msg
ATTRIBUTE_UNUSED
,
void
*
opaque
)
{
daemonClientStream
*
stream
=
opaque
;
...
...
@@ -244,7 +244,7 @@ cleanup:
* -1 on fatal client error
*/
static
int
daemonStreamFilter
(
virNetServerClientPtr
client
,
daemonStreamFilter
(
virNetServerClientPtr
client
ATTRIBUTE_UNUSED
,
virNetMessagePtr
msg
,
void
*
opaque
)
{
...
...
src/locking/lock_driver_nop.c
浏览文件 @
45ad3d69
...
...
@@ -27,9 +27,9 @@
#include "uuid.h"
static
int
virLockManagerNopInit
(
unsigned
int
version
,
const
char
*
configFile
,
unsigned
int
flags
)
static
int
virLockManagerNopInit
(
unsigned
int
version
ATTRIBUTE_UNUSED
,
const
char
*
configFile
ATTRIBUTE_UNUSED
,
unsigned
int
flags
ATTRIBUTE_UNUSED
)
{
VIR_DEBUG
(
"version=%u configFile=%s flags=%x"
,
version
,
NULLSTR
(
configFile
),
flags
);
...
...
src/lxc/lxc_container.c
浏览文件 @
45ad3d69
...
...
@@ -1245,7 +1245,7 @@ int lxcContainerAvailable(int features)
cpid
=
clone
(
lxcContainerDummyChild
,
childStack
,
flags
,
NULL
);
VIR_FREE
(
stack
);
if
(
cpid
<
0
)
{
char
ebuf
[
1024
];
char
ebuf
[
1024
]
ATTRIBUTE_UNUSED
;
VIR_DEBUG
(
"clone call returned %s, container support is not enabled"
,
virStrerror
(
errno
,
ebuf
,
sizeof
ebuf
));
return
-
1
;
...
...
src/lxc/lxc_driver.c
浏览文件 @
45ad3d69
...
...
@@ -2165,7 +2165,7 @@ static int lxcStartup(int privileged)
rc
=
virCgroupForDriver
(
"lxc"
,
&
lxc_driver
->
cgroup
,
privileged
,
1
);
if
(
rc
<
0
)
{
char
buf
[
1024
];
char
buf
[
1024
]
ATTRIBUTE_UNUSED
;
VIR_DEBUG
(
"Unable to create cgroup for LXC driver: %s"
,
virStrerror
(
-
rc
,
buf
,
sizeof
(
buf
)));
/* Don't abort startup. We will explicitly report to
...
...
src/node_device/node_device_udev.c
浏览文件 @
45ad3d69
...
...
@@ -703,7 +703,7 @@ out:
}
static
int
udevGetSCSIType
(
virNodeDeviceDefPtr
def
,
static
int
udevGetSCSIType
(
virNodeDeviceDefPtr
def
ATTRIBUTE_UNUSED
,
unsigned
int
type
,
char
**
typestring
)
{
int
ret
=
0
;
...
...
src/qemu/qemu_migration.c
浏览文件 @
45ad3d69
...
...
@@ -1829,7 +1829,7 @@ cleanup:
* instead of client app context & also adding in tunnel
* handling */
static
int
doPeer2PeerMigrate2
(
struct
qemud_driver
*
driver
,
virConnectPtr
sconn
,
virConnectPtr
sconn
ATTRIBUTE_UNUSED
,
virConnectPtr
dconn
,
virDomainObjPtr
vm
,
const
char
*
dconnuri
,
...
...
src/rpc/virnettlscontext.c
浏览文件 @
45ad3d69
...
...
@@ -96,7 +96,8 @@ virNetTLSContextCheckCertFile(const char *type, const char *file, bool allowMiss
}
static
void
virNetTLSLog
(
int
level
,
const
char
*
str
)
{
static
void
virNetTLSLog
(
int
level
ATTRIBUTE_UNUSED
,
const
char
*
str
ATTRIBUTE_UNUSED
)
{
VIR_DEBUG
(
"%d %s"
,
level
,
str
);
}
...
...
@@ -490,7 +491,7 @@ static int virNetTLSContextCheckCertPair(gnutls_x509_crt_t cert,
static
gnutls_x509_crt_t
virNetTLSContextLoadCertFromFile
(
const
char
*
certFile
,
bool
isServer
,
bool
isCA
)
bool
isCA
ATTRIBUTE_UNUSED
)
{
gnutls_datum_t
data
;
gnutls_x509_crt_t
cert
=
NULL
;
...
...
src/util/command.c
浏览文件 @
45ad3d69
...
...
@@ -1686,7 +1686,8 @@ virCommandProcessIO(virCommandPtr cmd)
}
else
{
inoff
+=
done
;
if
(
inoff
==
inlen
)
{
int
tmpfd
=
infd
;
int
tmpfd
ATTRIBUTE_UNUSED
;
tmpfd
=
infd
;
if
(
VIR_CLOSE
(
infd
)
<
0
)
VIR_DEBUG
(
"ignoring failed close on fd %d"
,
tmpfd
);
}
...
...
@@ -1877,7 +1878,8 @@ virCommandRun(virCommandPtr cmd, int *exitstatus)
VIR_DEBUG
(
"ignoring failed close on fd %d"
,
tmpfd
);
}
if
(
cmd
->
outbuf
==
&
outbuf
)
{
int
tmpfd
=
cmd
->
outfd
;
int
tmpfd
ATTRIBUTE_UNUSED
;
tmpfd
=
cmd
->
outfd
;
if
(
VIR_CLOSE
(
cmd
->
outfd
)
<
0
)
VIR_DEBUG
(
"ignoring failed close on fd %d"
,
tmpfd
);
cmd
->
outfdptr
=
NULL
;
...
...
@@ -1885,7 +1887,8 @@ virCommandRun(virCommandPtr cmd, int *exitstatus)
VIR_FREE
(
outbuf
);
}
if
(
cmd
->
errbuf
==
&
errbuf
)
{
int
tmpfd
=
cmd
->
errfd
;
int
tmpfd
ATTRIBUTE_UNUSED
;
tmpfd
=
cmd
->
errfd
;
if
(
VIR_CLOSE
(
cmd
->
errfd
)
<
0
)
VIR_DEBUG
(
"ignoring failed close on fd %d"
,
tmpfd
);
cmd
->
errfdptr
=
NULL
;
...
...
src/util/virpidfile.c
浏览文件 @
45ad3d69
...
...
@@ -351,7 +351,7 @@ int virPidFileAcquirePath(const char *path,
* one that now exists on the filesystem
*/
if
(
stat
(
path
,
&
a
)
<
0
)
{
char
ebuf
[
1024
];
char
ebuf
[
1024
]
ATTRIBUTE_UNUSED
;
VIR_DEBUG
(
"Pid file '%s' disappeared: %s"
,
path
,
virStrerror
(
errno
,
ebuf
,
sizeof
ebuf
));
VIR_FORCE_CLOSE
(
fd
);
...
...
src/vbox/vbox_tmpl.c
浏览文件 @
45ad3d69
...
...
@@ -6447,7 +6447,7 @@ cleanup:
/* Functions needed for Callbacks */
static
nsresult
PR_COM_METHOD
vboxCallbackOnMachineStateChange
(
IVirtualBoxCallback
*
pThis
,
vboxCallbackOnMachineStateChange
(
IVirtualBoxCallback
*
pThis
ATTRIBUTE_UNUSED
,
PRUnichar
*
machineId
,
PRUint32
state
)
{
virDomainPtr
dom
=
NULL
;
...
...
@@ -6521,7 +6521,7 @@ vboxCallbackOnMachineStateChange(IVirtualBoxCallback *pThis,
}
static
nsresult
PR_COM_METHOD
vboxCallbackOnMachineDataChange
(
IVirtualBoxCallback
*
pThis
,
vboxCallbackOnMachineDataChange
(
IVirtualBoxCallback
*
pThis
ATTRIBUTE_UNUSED
,
PRUnichar
*
machineId
)
{
VIR_DEBUG
(
"IVirtualBoxCallback: %p"
,
pThis
);
...
...
@@ -6531,11 +6531,11 @@ vboxCallbackOnMachineDataChange(IVirtualBoxCallback *pThis,
}
static
nsresult
PR_COM_METHOD
vboxCallbackOnExtraDataCanChange
(
IVirtualBoxCallback
*
pThis
,
vboxCallbackOnExtraDataCanChange
(
IVirtualBoxCallback
*
pThis
ATTRIBUTE_UNUSED
,
PRUnichar
*
machineId
,
PRUnichar
*
key
,
PRUnichar
*
value
,
PRUnichar
**
error
ATTRIBUTE_UNUSED
,
PRBool
*
allowChange
)
PRBool
*
allowChange
ATTRIBUTE_UNUSED
)
{
VIR_DEBUG
(
"IVirtualBoxCallback: %p, allowChange: %s"
,
pThis
,
*
allowChange
?
"true"
:
"false"
);
DEBUGPRUnichar
(
"machineId"
,
machineId
);
...
...
@@ -6546,7 +6546,8 @@ vboxCallbackOnExtraDataCanChange(IVirtualBoxCallback *pThis,
}
static
nsresult
PR_COM_METHOD
vboxCallbackOnExtraDataChange
(
IVirtualBoxCallback
*
pThis
,
PRUnichar
*
machineId
,
vboxCallbackOnExtraDataChange
(
IVirtualBoxCallback
*
pThis
ATTRIBUTE_UNUSED
,
PRUnichar
*
machineId
,
PRUnichar
*
key
,
PRUnichar
*
value
)
{
VIR_DEBUG
(
"IVirtualBoxCallback: %p"
,
pThis
);
...
...
@@ -6559,8 +6560,10 @@ vboxCallbackOnExtraDataChange(IVirtualBoxCallback *pThis, PRUnichar *machineId,
# if VBOX_API_VERSION < 3001
static
nsresult
PR_COM_METHOD
vboxCallbackOnMediaRegistered
(
IVirtualBoxCallback
*
pThis
,
PRUnichar
*
mediaId
,
PRUint32
mediaType
,
PRBool
registered
)
vboxCallbackOnMediaRegistered
(
IVirtualBoxCallback
*
pThis
ATTRIBUTE_UNUSED
,
PRUnichar
*
mediaId
,
PRUint32
mediaType
ATTRIBUTE_UNUSED
,
PRBool
registered
ATTRIBUTE_UNUSED
)
{
VIR_DEBUG
(
"IVirtualBoxCallback: %p, registered: %s"
,
pThis
,
registered
?
"true"
:
"false"
);
VIR_DEBUG
(
"mediaType: %d"
,
mediaType
);
...
...
@@ -6572,7 +6575,7 @@ vboxCallbackOnMediaRegistered(IVirtualBoxCallback *pThis, PRUnichar *mediaId,
# endif
/* VBOX_API_VERSION >= 3001 */
static
nsresult
PR_COM_METHOD
vboxCallbackOnMachineRegistered
(
IVirtualBoxCallback
*
pThis
,
vboxCallbackOnMachineRegistered
(
IVirtualBoxCallback
*
pThis
ATTRIBUTE_UNUSED
,
PRUnichar
*
machineId
,
PRBool
registered
)
{
virDomainPtr
dom
=
NULL
;
...
...
@@ -6631,8 +6634,9 @@ vboxCallbackOnMachineRegistered(IVirtualBoxCallback *pThis,
}
static
nsresult
PR_COM_METHOD
vboxCallbackOnSessionStateChange
(
IVirtualBoxCallback
*
pThis
,
PRUnichar
*
machineId
,
PRUint32
state
)
vboxCallbackOnSessionStateChange
(
IVirtualBoxCallback
*
pThis
ATTRIBUTE_UNUSED
,
PRUnichar
*
machineId
,
PRUint32
state
ATTRIBUTE_UNUSED
)
{
VIR_DEBUG
(
"IVirtualBoxCallback: %p, state: %d"
,
pThis
,
state
);
DEBUGPRUnichar
(
"machineId"
,
machineId
);
...
...
@@ -6641,7 +6645,8 @@ vboxCallbackOnSessionStateChange(IVirtualBoxCallback *pThis,
}
static
nsresult
PR_COM_METHOD
vboxCallbackOnSnapshotTaken
(
IVirtualBoxCallback
*
pThis
,
PRUnichar
*
machineId
,
vboxCallbackOnSnapshotTaken
(
IVirtualBoxCallback
*
pThis
ATTRIBUTE_UNUSED
,
PRUnichar
*
machineId
,
PRUnichar
*
snapshotId
)
{
VIR_DEBUG
(
"IVirtualBoxCallback: %p"
,
pThis
);
...
...
@@ -6652,7 +6657,8 @@ vboxCallbackOnSnapshotTaken(IVirtualBoxCallback *pThis, PRUnichar *machineId,
}
static
nsresult
PR_COM_METHOD
vboxCallbackOnSnapshotDiscarded
(
IVirtualBoxCallback
*
pThis
,
PRUnichar
*
machineId
,
vboxCallbackOnSnapshotDiscarded
(
IVirtualBoxCallback
*
pThis
ATTRIBUTE_UNUSED
,
PRUnichar
*
machineId
,
PRUnichar
*
snapshotId
)
{
VIR_DEBUG
(
"IVirtualBoxCallback: %p"
,
pThis
);
...
...
@@ -6663,7 +6669,8 @@ vboxCallbackOnSnapshotDiscarded(IVirtualBoxCallback *pThis, PRUnichar *machineId
}
static
nsresult
PR_COM_METHOD
vboxCallbackOnSnapshotChange
(
IVirtualBoxCallback
*
pThis
,
PRUnichar
*
machineId
,
vboxCallbackOnSnapshotChange
(
IVirtualBoxCallback
*
pThis
ATTRIBUTE_UNUSED
,
PRUnichar
*
machineId
,
PRUnichar
*
snapshotId
)
{
VIR_DEBUG
(
"IVirtualBoxCallback: %p"
,
pThis
);
...
...
@@ -6674,7 +6681,7 @@ vboxCallbackOnSnapshotChange(IVirtualBoxCallback *pThis, PRUnichar *machineId,
}
static
nsresult
PR_COM_METHOD
vboxCallbackOnGuestPropertyChange
(
IVirtualBoxCallback
*
pThis
,
vboxCallbackOnGuestPropertyChange
(
IVirtualBoxCallback
*
pThis
ATTRIBUTE_UNUSED
,
PRUnichar
*
machineId
,
PRUnichar
*
name
,
PRUnichar
*
value
,
PRUnichar
*
flags
)
{
...
...
@@ -6688,7 +6695,7 @@ vboxCallbackOnGuestPropertyChange(IVirtualBoxCallback *pThis,
}
static
nsresult
PR_COM_METHOD
vboxCallbackAddRef
(
nsISupports
*
pThis
)
vboxCallbackAddRef
(
nsISupports
*
pThis
ATTRIBUTE_UNUSED
)
{
nsresult
c
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录