mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
build: avoid s390 compiler warnings
I noticed these compiler warnings when building for the s390 architecture. * src/node_device/node_device_udev.c (udevDeviceMonitorStartup): Mark unused variable. * src/nodeinfo.c (linuxNodeInfoCPUPopulate): Avoid unused variable.
This commit is contained in:
parent
ddf2dfa1f7
commit
9011a494ac
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* node_device_udev.c: node device enumeration - libudev implementation
|
||||
*
|
||||
* Copyright (C) 2009-2011 Red Hat, Inc.
|
||||
* Copyright (C) 2009-2012 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@ -1604,7 +1604,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int udevDeviceMonitorStartup(int privileged)
|
||||
static int udevDeviceMonitorStartup(int privileged ATTRIBUTE_UNUSED)
|
||||
{
|
||||
udevPrivate *priv = NULL;
|
||||
struct udev *udev = NULL;
|
||||
|
@ -231,10 +231,10 @@ int linuxNodeInfoCPUPopulate(FILE *cpuinfo,
|
||||
|
||||
/* NOTE: hyperthreads are ignored here; they are parsed out of /sys */
|
||||
while (fgets(line, sizeof(line), cpuinfo) != NULL) {
|
||||
char *buf = line;
|
||||
# if defined(__x86_64__) || \
|
||||
defined(__amd64__) || \
|
||||
defined(__i386__)
|
||||
char *buf = line;
|
||||
if (STRPREFIX(buf, "cpu MHz")) {
|
||||
char *p;
|
||||
unsigned int ui;
|
||||
@ -253,6 +253,7 @@ int linuxNodeInfoCPUPopulate(FILE *cpuinfo,
|
||||
}
|
||||
# elif defined(__powerpc__) || \
|
||||
defined(__powerpc64__)
|
||||
char *buf = line;
|
||||
if (STRPREFIX(buf, "clock")) {
|
||||
char *p;
|
||||
unsigned int ui;
|
||||
|
Loading…
Reference in New Issue
Block a user